]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 52782 - whineatnews.pl email should use the 'sendmailnow' Param. Patch by e.maryn...
authorgerv%gerv.net <>
Fri, 12 Oct 2001 04:55:21 +0000 (04:55 +0000)
committergerv%gerv.net <>
Fri, 12 Oct 2001 04:55:21 +0000 (04:55 +0000)
whineatnews.pl

index 98c3c1db3d84171621dec007b64d280a1916d7fb..ba258ddca3e7184b046cacb641bc3a3c89d7f7c5 100755 (executable)
@@ -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";