diff options
author | cyeh%bluemartini.com <> | 2000-08-30 05:10:14 +0200 |
---|---|---|
committer | cyeh%bluemartini.com <> | 2000-08-30 05:10:14 +0200 |
commit | 321412db634033f99afb9459f18a0e1b2f244d73 (patch) | |
tree | 2216dd7b182f546943ee05ac30f892751048eaad /processmail | |
parent | 8fa450e947a3f82ad25e282fbee99204b916315d (diff) | |
download | bugzilla-321412db634033f99afb9459f18a0e1b2f244d73.tar.gz bugzilla-321412db634033f99afb9459f18a0e1b2f244d73.tar.xz |
fix for 50698: parameter for sendmail deferred mode
Diffstat (limited to 'processmail')
-rwxr-xr-x | processmail | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/processmail b/processmail index 35ecb2b75..6004f6632 100755 --- a/processmail +++ b/processmail @@ -584,7 +584,12 @@ sub NewProcessOnePerson ($$\@\%\%\%$$$$) { my $template = Param("newchangedmail"); my $msg = PerformSubsts($template, \%substs); - open(SENDMAIL, "|/usr/lib/sendmail -ODeliveryMode=deferred -t") || + + my $sendmailparam = "-ODeliveryMode=deferred"; + if (Param("sendmailnow")) { + my $sendmailparam = ""; + } + open(SENDMAIL, "|/usr/lib/sendmail $sendmailparam -t") || die "Can't open sendmail"; print SENDMAIL trim($msg) . "\n"; @@ -647,8 +652,12 @@ sub ProcessOneBug { if (!$regenerate) { # Note: fixaddresses may result in a Cc: only. This seems # harmless. + my $sendmailparam = "-ODeliveryMode=deferred"; + if (Param("sendmailnow")) { + my $sendmailparam = ""; + } open(SENDMAIL, - "|/usr/lib/sendmail -ODeliveryMode=deferred -t") || + "|/usr/lib/sendmail $sendmailparam -t") || die "Can't open sendmail"; print SENDMAIL $msg; |