]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 365317: Must add 'MIME-Version: 1.0' to avoid charset being possibly ignored
authorolav%bkor.dhs.org <>
Sun, 4 Feb 2007 23:41:10 +0000 (23:41 +0000)
committerolav%bkor.dhs.org <>
Sun, 4 Feb 2007 23:41:10 +0000 (23:41 +0000)
Patch By Olav Vitters <olav@bkor.dhs.org> r=mkanat a=mkanat

Bugzilla/Mailer.pm

index 633964b3384801cbd46fbe01465c697499efd024..d5ecb5a384d82e33783cb41e246b8feb05b6f1d0 100644 (file)
@@ -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)) {