diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-04-08 22:03:09 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-04-08 22:03:09 +0200 |
commit | 72780239f1572950635e058caa4c28068034045f (patch) | |
tree | ee70cdd5d7f93a43d4aa638b6fb2d4b5ab42b003 /Bugzilla/Mailer.pm | |
parent | bae339624bf43994d7cf3b543752c8ae0058d6b9 (diff) | |
download | bugzilla-72780239f1572950635e058caa4c28068034045f.tar.gz bugzilla-72780239f1572950635e058caa4c28068034045f.tar.xz |
Bug 148564 - Ability to ignore specific bugs (not get email from them, even as the reporter)
r=glob,r/a=LpSolit
Diffstat (limited to 'Bugzilla/Mailer.pm')
-rw-r--r-- | Bugzilla/Mailer.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 6602c6cef..b60ddb72e 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -136,6 +136,8 @@ sub MessageToMTA { Bugzilla::Hook::process('mailer_before_send', { email => $email, mailer_args => \@args }); + return if $email->header('to') eq ''; + $email->walk_parts(sub { my ($part) = @_; return if $part->parts > 1; # Top-level |