From addee09f738a699a481e083c2760273a90627e7c Mon Sep 17 00:00:00 2001 From: "olav%bkor.dhs.org" Date: Sun, 4 Feb 2007 15:41:10 +0000 Subject: [PATCH] Bug 365317: Must add 'MIME-Version: 1.0' to avoid charset being possibly ignored Patch By Olav Vitters r=mkanat a=mkanat --- webtools/bugzilla/Bugzilla/Mailer.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webtools/bugzilla/Bugzilla/Mailer.pm b/webtools/bugzilla/Bugzilla/Mailer.pm index 633964b3384..d5ecb5a384d 100644 --- a/webtools/bugzilla/Bugzilla/Mailer.pm +++ b/webtools/bugzilla/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)) {