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

This commit is contained in:
cyeh%bluemartini.com 2000-09-12 16:29:38 +00:00
parent f7f49cb31e
commit 2e62d1d1d3

View 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;