From: cyeh%bluemartini.com <> Date: Tue, 12 Sep 2000 23:29:38 +0000 (+0000) Subject: fix for 51299: RemoveVotes email should use the 'sendmailnow' Param. patch by dave... X-Git-Tag: bugzilla-2.12~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6af450431d34447a8ce96eefc26a9c9973c8abe1;p=thirdparty%2Fbugzilla.git fix for 51299: RemoveVotes email should use the 'sendmailnow' Param. patch by dave@intrec.com --- diff --git a/globals.pl b/globals.pl index e6b48521b6..94e16734d0 100644 --- a/globals.pl +++ b/globals.pl @@ -899,7 +899,11 @@ sub RemoveVotes { if (0 < @list) { foreach my $ref (@list) { my ($name, $count) = (@$ref); - if (open(SENDMAIL, "|/usr/lib/sendmail -t")) { + my $sendmailparm = '-ODeliveryMode=deferred'; + if (Param('sendmailnow')) { + $sendmailparm = ''; + } + if (open(SENDMAIL, "|/usr/lib/sendmail $sendmailparm -t")) { my %substs; $substs{"to"} = $name; $substs{"bugid"} = $id;