]> 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:56:58 +0000 (22:56 +0800)
committerByron Jones <bjones@mozilla.com>
Tue, 27 Nov 2012 14:56:58 +0000 (22:56 +0800)
r=glob,a=LpSolit

Bugzilla/BugMail.pm

index 2c1ab5885503e500dcc28381ade6c7bd5e5b45c7..df8e0df78fb3d3f04c7fffeb18f3efbf6bc878a9 100644 (file)
@@ -390,6 +390,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;