From acccc59b30927c1c09fdb5e0b911bc5a9b971cc8 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Thu, 25 Aug 2005 13:51:48 +0000 Subject: [PATCH] Bug 305498: UTF-8 e-mail encoding is not working - Patch by Cedric Caron r=glob a=justdave git-svn-id: svn://10.0.0.236/trunk@178943 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/BugMail.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/BugMail.pm b/mozilla/webtools/bugzilla/Bugzilla/BugMail.pm index 59d4210a1f2..fc6fa266691 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/BugMail.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/BugMail.pm @@ -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); } }