]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 125516: the recent fix for emails truncating when a period occurred on...
authorjustdave%syndicomm.com <>
Sun, 17 Feb 2002 16:22:29 +0000 (16:22 +0000)
committerjustdave%syndicomm.com <>
Sun, 17 Feb 2002 16:22:29 +0000 (16:22 +0000)
needs the -t and -i as separate parameters instead of stacked (the original patch had -ti)
Patch by Tobias Burnus <burnus@gmx.de>
r= justdave, gerv

Bugzilla/Token.pm
CGI.pl
Token.pm
globals.pl
importxml.pl
move.pl
processmail
whineatnews.pl

index 1cff2fac230bc154af559bac26c9c5b215e30de8..4f7f61882ef341ce7bec31fbd1568721a4840288 100644 (file)
@@ -101,7 +101,7 @@ sub MailPasswordToken {
     my $emailsuffix = &::Param('emailsuffix');
     $token = &::url_quote($token);
 
-    open SENDMAIL, "|/usr/lib/sendmail -ti";
+    open SENDMAIL, "|/usr/lib/sendmail -t -i";
 
     print SENDMAIL qq|From: bugzilla-daemon
 To: $emailaddress$emailsuffix
@@ -144,7 +144,7 @@ sub Cancel {
     my $username = $realname ? $realname . " <" . $loginname . ">" : $loginname;
 
     # Notify the user via email about the cancellation.
-    open SENDMAIL, "|/usr/lib/sendmail -ti";
+    open SENDMAIL, "|/usr/lib/sendmail -t -i";
     print SENDMAIL qq|From: bugzilla-daemon
 To: $username
 Subject: "$tokentype" token cancelled
diff --git a/CGI.pl b/CGI.pl
index ab49fffcf40e7a60c12ea3abe849c8dbd0387f3b..f91cbd6704440598ccd947ab5d6cca8b7dc65c11 100644 (file)
--- a/CGI.pl
+++ b/CGI.pl
@@ -762,7 +762,7 @@ sub MailPassword {
                              "login" => $login,
                              "password" => $password});
 
-    open SENDMAIL, "|/usr/lib/sendmail -ti";
+    open SENDMAIL, "|/usr/lib/sendmail -t -i";
     print SENDMAIL $msg;
     close SENDMAIL;
 }
index 1cff2fac230bc154af559bac26c9c5b215e30de8..4f7f61882ef341ce7bec31fbd1568721a4840288 100644 (file)
--- a/Token.pm
+++ b/Token.pm
@@ -101,7 +101,7 @@ sub MailPasswordToken {
     my $emailsuffix = &::Param('emailsuffix');
     $token = &::url_quote($token);
 
-    open SENDMAIL, "|/usr/lib/sendmail -ti";
+    open SENDMAIL, "|/usr/lib/sendmail -t -i";
 
     print SENDMAIL qq|From: bugzilla-daemon
 To: $emailaddress$emailsuffix
@@ -144,7 +144,7 @@ sub Cancel {
     my $username = $realname ? $realname . " <" . $loginname . ">" : $loginname;
 
     # Notify the user via email about the cancellation.
-    open SENDMAIL, "|/usr/lib/sendmail -ti";
+    open SENDMAIL, "|/usr/lib/sendmail -t -i";
     print SENDMAIL qq|From: bugzilla-daemon
 To: $username
 Subject: "$tokentype" token cancelled
index deb433ab443dbbb43b878a5f138627a63dd25152..a1acb5a7972d8b4f3efaefcdbb14bd20e119436f 100644 (file)
@@ -1432,7 +1432,7 @@ sub RemoveVotes {
             if (Param('sendmailnow')) {
                $sendmailparm = '';
             }
-            if (open(SENDMAIL, "|/usr/lib/sendmail $sendmailparm -ti")) {
+            if (open(SENDMAIL, "|/usr/lib/sendmail $sendmailparm -t -i")) {
                 my %substs;
 
                 $substs{"to"} = $name;
index 584855e291e2eeb699e2254c115eec33ad4c77e6..f2ed77d5c2733ffcad4358670ec98095f166154e 100755 (executable)
@@ -114,7 +114,7 @@ sub MailMessage {
   $header.= "Subject: $subject\n\n";
 
   open(SENDMAIL,
-    "|/usr/lib/sendmail -ODeliveryMode=background -ti") ||
+    "|/usr/lib/sendmail -ODeliveryMode=background -t -i") ||
       die "Can't open sendmail";
   print SENDMAIL $header . $message . "\n";
   close SENDMAIL;
diff --git a/move.pl b/move.pl
index 36b83a5fa272fdb374a77b6f0f70383ef67f98c6..f38644358341c555cfa38428c034e9e51bb5ed29 100755 (executable)
--- a/move.pl
+++ b/move.pl
@@ -154,7 +154,7 @@ $msg .= "Subject: Moving bug(s) $buglist\n\n";
 $msg .= $xml . "\n";
 
 open(SENDMAIL,
-  "|/usr/lib/sendmail -ODeliveryMode=background -ti") ||
+  "|/usr/lib/sendmail -ODeliveryMode=background -t -i") ||
     die "Can't open sendmail";
 print SENDMAIL $msg;
 close SENDMAIL;
index 4fcc424d2b98b2513309c0086bb6bc5bbc7d4e0d..2bea93da639c438b9c4d1be64f1cd581f57454c4 100755 (executable)
@@ -771,7 +771,7 @@ sub NewProcessOnePerson ($$$$$$$$$$$$) {
     }
 
     if ($enableSendMail == 1) {
-    open(SENDMAIL, "|/usr/lib/sendmail $sendmailparam -ti") ||
+    open(SENDMAIL, "|/usr/lib/sendmail $sendmailparam -t -i") ||
       die "Can't open sendmail";
     
     print SENDMAIL trim($msg) . "\n";
index 0b5d78eba0c5b519916591717021ee91a6f9bf96..b364836a595a06a636afc2fc00cc7ec35c7d2718 100755 (executable)
@@ -64,7 +64,7 @@ foreach my $email (sort (keys %bugs)) {
     }
 
     my $sendmailparam = Param('sendmailnow') ? '' : "-ODeliveryMode=deferred";
-    open SENDMAIL, "|/usr/lib/sendmail $sendmailparam -ti"
+    open SENDMAIL, "|/usr/lib/sendmail $sendmailparam -t -i"
         or die "Can't open sendmail";
     print SENDMAIL $msg;
     close SENDMAIL;