From b1ef06ac929b878163befb7effa54aa13d6426e5 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 24 Oct 2011 17:54:13 -0400 Subject: Bug 685552 - Email auto-completion causes server to thrash r/a=mkanat --- Bugzilla/Mailer.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Bugzilla/Mailer.pm') 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; -- cgit v1.2.3-24-g4f1b