From ff0e97c463d4cb2429f5b3a12191e4743c57eeb0 Mon Sep 17 00:00:00 2001 From: "wurblzap%gmail.com" <> Date: Thu, 2 Aug 2007 12:20:57 +0000 Subject: Bug 387860 – Subject lines in mails may contain mangled multi-byte characters. Patch by Ilya Slobodin , r=Wurblzap, a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Mailer.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index ab54ecfea..b4b2f320d 100644 --- a/Bugzilla/Mailer.pm +++ b/Bugzilla/Mailer.pm @@ -66,6 +66,7 @@ sub MessageToMTA { # Encode the headers correctly in quoted-printable foreach my $header qw(From To Cc Reply-To Sender Errors-To Subject) { if (my $value = $email->header($header)) { + $value = Encode::decode("UTF-8", $value) if Bugzilla->params->{'utf8'}; my $encoded = encode('MIME-Q', $value); $email->header_set($header, $encoded); } -- cgit v1.2.3-24-g4f1b