diff options
author | gerv%gerv.net <> | 2001-10-12 06:55:21 +0200 |
---|---|---|
committer | gerv%gerv.net <> | 2001-10-12 06:55:21 +0200 |
commit | 69aa4d375af8f43bf5ec8922fe0b96ef85f0c7ee (patch) | |
tree | 2d5304d4bf5fce62acc81863eab3abcdb63a6013 | |
parent | 732514db285f8dade05d1deb6a29813123a4d6bd (diff) | |
download | bugzilla-69aa4d375af8f43bf5ec8922fe0b96ef85f0c7ee.tar.gz bugzilla-69aa4d375af8f43bf5ec8922fe0b96ef85f0c7ee.tar.xz |
Bug 52782 - whineatnews.pl email should use the 'sendmailnow' Param. Patch by e.maryniak@pobox.com, r=gerv.
-rwxr-xr-x | whineatnews.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/whineatnews.pl b/whineatnews.pl index 98c3c1db3..ba258ddca 100755 --- a/whineatnews.pl +++ b/whineatnews.pl @@ -62,7 +62,10 @@ foreach my $email (sort (keys %bugs)) { foreach my $i (@{$bugs{$email}}) { $msg .= " ${urlbase}show_bug.cgi?id=$i\n" } - open(SENDMAIL, "|/usr/lib/sendmail -t") || die "Can't open sendmail"; + + my $sendmailparam = Param('sendmailnow') ? '' : "-ODeliveryMode=deferred"; + open SENDMAIL, "|/usr/lib/sendmail $sendmailparam -t" + or die "Can't open sendmail"; print SENDMAIL $msg; close SENDMAIL; print "$email " . join(" ", @{$bugs{$email}}) . "\n"; |