From: olav%bkor.dhs.org <> Date: Sun, 4 Feb 2007 23:41:10 +0000 (+0000) Subject: Bug 365317: Must add 'MIME-Version: 1.0' to avoid charset being possibly ignored X-Git-Tag: bugzilla-3.0rc1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d158911752d6135900efc160569fa2d8afcb076;p=thirdparty%2Fbugzilla.git Bug 365317: Must add 'MIME-Version: 1.0' to avoid charset being possibly ignored Patch By Olav Vitters r=mkanat a=mkanat --- diff --git a/Bugzilla/Mailer.pm b/Bugzilla/Mailer.pm index 633964b338..d5ecb5a384 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)) {