]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 777685: Use UTF-8 encoding on all email parts, to work around buggy email clients.
authorThorsten Schöning <tschoening@am-soft.de>
Tue, 27 Nov 2012 14:57:59 +0000 (22:57 +0800)
committerByron Jones <bjones@mozilla.com>
Tue, 27 Nov 2012 14:57:59 +0000 (22:57 +0800)
r=glob,a=LpSolit

Bugzilla/BugMail.pm

index 764b223db61bdd22b31a984d8a891a49fdfc1e3e..123a30081e4020742f2b7228adb78601d2cb4c7c 100644 (file)
@@ -389,6 +389,8 @@ sub _generate_bugmail {
         $email->content_type_set($parts[0]->content_type);
     } else {
         $email->content_type_set('multipart/alternative');
+        # Some mail clients need same encoding for each part, even empty ones.
+        $email->charset_set('UTF-8') if Bugzilla->params->{'utf8'};
     }
     $email->parts_set(\@parts);
     return $email;