]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 305498: UTF-8 e-mail encoding is not working - Patch by Cedric Caron <cedric...
authorlpsolit%gmail.com <>
Thu, 25 Aug 2005 20:51:48 +0000 (20:51 +0000)
committerlpsolit%gmail.com <>
Thu, 25 Aug 2005 20:51:48 +0000 (20:51 +0000)
Bugzilla/BugMail.pm

index 59d4210a1f270d30e503bdd2ef14e94e9ae10849..fc6fa2666919efa11f64889ff034562e73b79496 100644 (file)
@@ -711,10 +711,10 @@ sub encode_message {
         # than half the message is 7-bit clean
         my $count = ($body =~ tr/\x20-\x7E\x0A\x0D//);
         if ($count > length($body) / 2) {
-            $head->replace('Content-Transfer-Encoding', 'quoted-printable');
+            $head->mime_attr('Content-Transfer-Encoding' => 'quoted-printable');
             $body = encode_qp($body);
         } else {
-            $head->replace('Content-Transfer-Encoding', 'base64');
+            $head->mime_attr('Content-Transfer-Encoding' => 'base64');
             $body = encode_base64($body);
         }
     }