summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Mailer.pm1
1 files changed, 1 insertions, 0 deletions
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);
}