diff options
author | Byron Jones <bjones@mozilla.com> | 2013-02-20 09:37:18 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-02-20 09:37:18 +0100 |
commit | 39e464daa0068f00fc1ae47a4dfbe952403b9d1d (patch) | |
tree | 930d25ef19c23115ee6e70d3146ac8343e1c472d /Bugzilla | |
parent | 70f367216ff5af3731bced4ec0b206e1c8a4da2c (diff) | |
download | bugzilla-39e464daa0068f00fc1ae47a4dfbe952403b9d1d.tar.gz bugzilla-39e464daa0068f00fc1ae47a4dfbe952403b9d1d.tar.xz |
Update and enable LimitedEmail extension
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Mailer.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 7789af018..381422821 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -166,6 +166,9 @@ sub MessageToMTA { Bugzilla::Hook::process('mailer_before_send', { email => $email, mailer_args => \@args }); + # Allow for extensions to to drop the bugmail by clearing the 'to' header + return if $email->header('to') eq ''; + $email->walk_parts(sub { my ($part) = @_; return if $part->parts > 1; # Top-level |