summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorolav%bkor.dhs.org <>2007-02-05 00:41:10 +0100
committerolav%bkor.dhs.org <>2007-02-05 00:41:10 +0100
commit5d158911752d6135900efc160569fa2d8afcb076 (patch)
treeb136fa973f26e0811d236f9393734392ae2f48fa
parent31d86bb1bf64adba6d20fd9389dcedd30fd7bb84 (diff)
downloadbugzilla-5d158911752d6135900efc160569fa2d8afcb076.tar.gz
bugzilla-5d158911752d6135900efc160569fa2d8afcb076.tar.xz
Bug 365317: Must add 'MIME-Version: 1.0' to avoid charset being possibly ignored
Patch By Olav Vitters <olav@bkor.dhs.org> r=mkanat a=mkanat
-rw-r--r--Bugzilla/Mailer.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm
index 633964b33..d5ecb5a38 100644
--- a/Bugzilla/Mailer.pm
+++ b/Bugzilla/Mailer.pm
@@ -58,6 +58,9 @@ sub MessageToMTA {
$part->encoding_set('quoted-printable') if !is_7bit_clean($part->body);
}
+ # MIME-Version must be set otherwise some mailsystems ignore the charset
+ $email->header_set('MIME-Version', '1.0') if !$email->header('MIME-Version');
+
# 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)) {