E-mail notification of new attachments

David Miller justdave at bugzilla.org
Wed Apr 6 01:22:09 UTC 2005


Gervase Markham wrote:
> Sean McAfee wrote:
> 
>> if ($difftext eq "" && $newcomments eq "") { return; }
>>
>> How this condition gets met, though, is proving difficult to 
>> determine.  So,
>> I'm punting to the list and hoping someone more familiar with the BugMail
>> guts can explain what's happening more quickly.
> 
> 
> Having just rewritten them in bug 73665, I'm fairly familiar with them 
> :-) $difftext is the text to go in mails containing the differences in 
> the bug. Attachment fields aren't included. $newcomments are the new 
> comments. So both of these will be empty for your change.

In Bugzilla as-shipped, creating an attachment adds a comment to the 
bug.  This satifies the "are there new comments?" check and mail is 
sent.  The only way you'd be getting bounced out on that is if you 
modified Bugzilla to not add that comment when an attachment is added.

-- 
Dave Miller                                   http://www.justdave.net/
System Administrator, Mozilla Foundation       http://www.mozilla.org/
Project Leader, Bugzilla Bug Tracking System  http://www.bugzilla.org/



More information about the developers mailing list