Commit f1f97d1c authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 305498: UTF-8 e-mail encoding is not working - Patch by Cedric Caron…

Bug 305498: UTF-8 e-mail encoding is not working - Patch by Cedric Caron <cedric.caron@urbanet.ch> r=glob a=justdave
parent 52ba58c8
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment