From 69aa4d375af8f43bf5ec8922fe0b96ef85f0c7ee Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Fri, 12 Oct 2001 04:55:21 +0000 Subject: Bug 52782 - whineatnews.pl email should use the 'sendmailnow' Param. Patch by e.maryniak@pobox.com, r=gerv. --- whineatnews.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'whineatnews.pl') 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"; -- cgit v1.2.3-24-g4f1b