]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/MIME.pm
* Merge in changes from the source tree to fix rfc1522 encoding of
[debbugs.git] / Debbugs / MIME.pm
index 1269e17b4a077ea86f148a2d546372b7f20376a6..9099fa1b038d8aaa99ab62bc4fc5150732768cc6 100644 (file)
@@ -131,7 +131,9 @@ sub create_mime_message{
 
      # Build the message
      # MIME::Entity is stupid, and doesn't rfc1522 encode its headers, so we do it for it.
-     my $msg = MIME::Entity->build(map{encode_rfc1522($_)} @{$headers},
+     my $msg = MIME::Entity->build('Content-Type' => 'text/plain; charset=utf-8',
+                                  'Encoding'     => 'quoted-printable',
+                                  (map{encode_rfc1522($_)} @{$headers}),
                                   Data    => $body
                                  );