summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Mailer.pm
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-10-24 23:54:13 +0200
committerDavid Lawrence <dlawrence@mozilla.com>2011-10-24 23:54:13 +0200
commitb1ef06ac929b878163befb7effa54aa13d6426e5 (patch)
treea0c2617bd49ea7bc3bd56ef265345f77a6d7e319 /Bugzilla/Mailer.pm
parent650a2f9f5807536ee118ba031622bede7f4e1642 (diff)
downloadbugzilla-b1ef06ac929b878163befb7effa54aa13d6426e5.tar.gz
bugzilla-b1ef06ac929b878163befb7effa54aa13d6426e5.tar.xz
Bug 685552 - Email auto-completion causes server to thrash
r/a=mkanat
Diffstat (limited to 'Bugzilla/Mailer.pm')
-rw-r--r--Bugzilla/Mailer.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm
index 699467ed8..f8d5e9556 100644
--- a/Bugzilla/Mailer.pm
+++ b/Bugzilla/Mailer.pm
@@ -171,6 +171,8 @@ sub MessageToMTA {
Bugzilla::Hook::process('mailer_before_send',
{ email => $email, mailer_args => \@args });
+ return if $email->header('to') eq '';
+
if ($method eq "Test") {
my $filename = bz_locations()->{'datadir'} . '/mailer.testfile';
open TESTFILE, '>>', $filename;