summaryrefslogtreecommitdiffstats
path: root/Bugzilla/BugMail.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-08-25 22:51:48 +0200
committerlpsolit%gmail.com <>2005-08-25 22:51:48 +0200
commitf1f97d1ce4e9d90680aca0adc97e7b5f97c6cc25 (patch)
treef66a8951b895f35f6dfcbed3c0393aceb22d6d4a /Bugzilla/BugMail.pm
parent52ba58c8d0be4196692975d645b261dc34a09e66 (diff)
downloadbugzilla-f1f97d1ce4e9d90680aca0adc97e7b5f97c6cc25.tar.gz
bugzilla-f1f97d1ce4e9d90680aca0adc97e7b5f97c6cc25.tar.xz
Bug 305498: UTF-8 e-mail encoding is not working - Patch by Cedric Caron <cedric.caron@urbanet.ch> r=glob a=justdave
Diffstat (limited to 'Bugzilla/BugMail.pm')
-rw-r--r--Bugzilla/BugMail.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index 59d4210a1..fc6fa2666 100644
--- a/Bugzilla/BugMail.pm
+++ b/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);
}
}