sendmail and its clones to tell it to ignore periods (since we close the pipe when we're done, rather than signalling it with
a period). Has been tested with sendmail and postfix.
Patch by Dave Miller <justdave@syndicomm.com>
r= afranke, bugzilla@bkor.dhs.org, jake
my $emailsuffix = &::Param('emailsuffix');
$token = &::url_quote($token);
- open SENDMAIL, "|/usr/lib/sendmail -t";
+ open SENDMAIL, "|/usr/lib/sendmail -ti";
print SENDMAIL qq|From: bugzilla-daemon
To: $emailaddress$emailsuffix
my $username = $realname ? $realname . " <" . $loginname . ">" : $loginname;
# Notify the user via email about the cancellation.
- open SENDMAIL, "|/usr/lib/sendmail -t";
+ open SENDMAIL, "|/usr/lib/sendmail -ti";
print SENDMAIL qq|From: bugzilla-daemon
To: $username
Subject: "$tokentype" token cancelled
"login" => $login,
"password" => $password});
- open SENDMAIL, "|/usr/lib/sendmail -t";
+ open SENDMAIL, "|/usr/lib/sendmail -ti";
print SENDMAIL $msg;
close SENDMAIL;
}
my $emailsuffix = &::Param('emailsuffix');
$token = &::url_quote($token);
- open SENDMAIL, "|/usr/lib/sendmail -t";
+ open SENDMAIL, "|/usr/lib/sendmail -ti";
print SENDMAIL qq|From: bugzilla-daemon
To: $emailaddress$emailsuffix
my $username = $realname ? $realname . " <" . $loginname . ">" : $loginname;
# Notify the user via email about the cancellation.
- open SENDMAIL, "|/usr/lib/sendmail -t";
+ open SENDMAIL, "|/usr/lib/sendmail -ti";
print SENDMAIL qq|From: bugzilla-daemon
To: $username
Subject: "$tokentype" token cancelled
if (Param('sendmailnow')) {
$sendmailparm = '';
}
- if (open(SENDMAIL, "|/usr/lib/sendmail $sendmailparm -t")) {
+ if (open(SENDMAIL, "|/usr/lib/sendmail $sendmailparm -ti")) {
my %substs;
$substs{"to"} = $name;
$header.= "Subject: $subject\n\n";
open(SENDMAIL,
- "|/usr/lib/sendmail -ODeliveryMode=background -t") ||
+ "|/usr/lib/sendmail -ODeliveryMode=background -ti") ||
die "Can't open sendmail";
print SENDMAIL $header . $message . "\n";
close SENDMAIL;
$msg .= $xml . "\n";
open(SENDMAIL,
- "|/usr/lib/sendmail -ODeliveryMode=background -t") ||
+ "|/usr/lib/sendmail -ODeliveryMode=background -ti") ||
die "Can't open sendmail";
print SENDMAIL $msg;
close SENDMAIL;
}
if ($enableSendMail == 1) {
- open(SENDMAIL, "|/usr/lib/sendmail $sendmailparam -t") ||
+ open(SENDMAIL, "|/usr/lib/sendmail $sendmailparam -ti") ||
die "Can't open sendmail";
print SENDMAIL trim($msg) . "\n";
}
my $sendmailparam = Param('sendmailnow') ? '' : "-ODeliveryMode=deferred";
- open SENDMAIL, "|/usr/lib/sendmail $sendmailparam -t"
+ open SENDMAIL, "|/usr/lib/sendmail $sendmailparam -ti"
or die "Can't open sendmail";
print SENDMAIL $msg;
close SENDMAIL;