Commit 6af45043 authored by cyeh%bluemartini.com's avatar cyeh%bluemartini.com

fix for 51299: RemoveVotes email should use the 'sendmailnow' Param. patch by dave@intrec.com

parent 8ea64d14
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment