summaryrefslogtreecommitdiffstats
path: root/Bugzilla
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
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')
-rw-r--r--Bugzilla/Config/UserMatch.pm6
-rw-r--r--Bugzilla/Mailer.pm2
2 files changed, 8 insertions, 0 deletions
diff --git a/Bugzilla/Config/UserMatch.pm b/Bugzilla/Config/UserMatch.pm
index f97cfeab2..38d2cb05b 100644
--- a/Bugzilla/Config/UserMatch.pm
+++ b/Bugzilla/Config/UserMatch.pm
@@ -47,6 +47,12 @@ sub get_param_list {
},
{
+ name => 'ajax_user_autocompletion',
+ type => 'b',
+ default => '1',
+ },
+
+ {
name => 'maxusermatches',
type => 't',
default => '1000',
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;