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
This commit is contained in:
olav%bkor.dhs.org 2007-02-04 15:41:10 +00:00
Родитель 5520a1c5ca
Коммит addee09f73
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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)) {