]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
fix for 51299: RemoveVotes email should use the 'sendmailnow' Param. patch by dave...
authorcyeh%bluemartini.com <>
Tue, 12 Sep 2000 23:29:38 +0000 (23:29 +0000)
committercyeh%bluemartini.com <>
Tue, 12 Sep 2000 23:29:38 +0000 (23:29 +0000)
globals.pl

index e6b48521b68a97c0cbb6a6f1b93f6cbb41cff263..94e16734d0ca560912eae4638a9ca998477c1734 100644 (file)
@@ -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;