From: gerv%gerv.net <> Date: Fri, 12 Oct 2001 04:55:21 +0000 (+0000) Subject: Bug 52782 - whineatnews.pl email should use the 'sendmailnow' Param. Patch by e.maryn... X-Git-Tag: bugzilla-2.14.1~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69aa4d375af8f43bf5ec8922fe0b96ef85f0c7ee;p=thirdparty%2Fbugzilla.git Bug 52782 - whineatnews.pl email should use the 'sendmailnow' Param. Patch by e.maryniak@pobox.com, r=gerv. --- diff --git a/whineatnews.pl b/whineatnews.pl index 98c3c1db3d..ba258ddca3 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";