Commit 6dff94ab authored by dmose%mozilla.org's avatar dmose%mozilla.org

use sendmail deferred delivery to avoid long hangs at bug submission time

parent 27a112e5
......@@ -1639,6 +1639,8 @@ if ( CountIndexes('cc') != 3 ) {
DropIndexes('cc');
$dbh->do("ALTER TABLE cc ADD UNIQUE (bug_id,who)");
$dbh->do("ALTER TABLE cc ADD INDEX (who)");
$regenerateshadow=1; # cc fields no longer have spaces in them
}
if ( CountIndexes('keywords') != 3 ) {
......@@ -1649,6 +1651,7 @@ if ( CountIndexes('keywords') != 3 ) {
DropIndexes('keywords');
$dbh->do("ALTER TABLE keywords ADD INDEX (keywordid)");
$dbh->do("ALTER TABLE keywords ADD UNIQUE (bug_id,keywordid)");
}
#
......@@ -1670,3 +1673,4 @@ if ($regenerateshadow) {
unlink "data/versioncache";
print "Reminder: Bugzilla now requires version 3.22.5 or later of MySQL.\n";
print "Reminder: Bugzilla now requires version 8.7 or later of sendmail.\n";
......@@ -582,7 +582,7 @@ sub NewProcessOnePerson ($$\@\%\%\%$$$$) {
my $template = Param("newchangedmail");
my $msg = PerformSubsts($template, \%substs);
open(SENDMAIL, "|/usr/lib/sendmail -t") ||
open(SENDMAIL, "|/usr/lib/sendmail -ODeliveryMode=deferred -t") ||
die "Can't open sendmail";
print SENDMAIL trim($msg) . "\n";
......@@ -645,8 +645,9 @@ sub ProcessOneBug {
if (!$regenerate) {
# Note: fixaddresses may result in a Cc: only. This seems
# harmless.
open(SENDMAIL, "|/usr/lib/sendmail -t") ||
die "Can't open sendmail";
open(SENDMAIL,
"|/usr/lib/sendmail -ODeliveryMode=deferred -t") ||
die "Can't open sendmail";
print SENDMAIL $msg;
close SENDMAIL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment