summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--globals.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl
index e6b48521b..94e16734d 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;