diff roundup/roundupdb.py @ 4423:579802067547

Fix charset of first text-part of outgoing multipart messages... ...thanks Dirk Geschke for reporting, see http://thread.gmane.org/gmane.comp.bug-tracking.roundup.user/10223 This also adds some regression tests to test incoming latin1 and outgoing single- and multipart utf-8 and latin1 messages
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Mon, 04 Oct 2010 12:56:37 +0000
parents 9655a1b65974
children f1affb6b7a08
line wrap: on
line diff
--- a/roundup/roundupdb.py	Wed Sep 29 07:49:09 2010 +0000
+++ b/roundup/roundupdb.py	Mon Oct 04 12:56:37 2010 +0000
@@ -472,6 +472,7 @@
             if message_files:
                 # first up the text as a part
                 part = MIMEText(body)
+                part.set_charset(charset)
                 encode_quopri(part)
                 message.attach(part)
 

Roundup Issue Tracker: http://roundup-tracker.org/