changeset 4523:a03646a02f68

Fix issue2550691 where a Unix From-Header was sometimes inserted... ...in outgoing emails, thanks to Joseph Myers for the patch.
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Fri, 15 Jul 2011 14:05:29 +0000
parents d48f88f4c3c8
children 68bbefb72825
files CHANGES.txt roundup/cgi/client.py
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Fri Jul 15 12:54:27 2011 +0000
+++ b/CHANGES.txt	Fri Jul 15 14:05:29 2011 +0000
@@ -46,6 +46,8 @@
   StringIO.StringIO for emulating a io.BytesIO also works.
   Thanks to Cédric Krier for reporting. Closes issue2550713.
   Added a regression test for EditCSVAction (Ralf)
+- Fix issue2550691 where a Unix From-Header was sometimes inserted in
+  outgoing emails, thanks to Joseph Myers for the patch. (Ralf)
 
 
 2011-05-29 1.4.18 (r4610)
--- a/roundup/cgi/client.py	Fri Jul 15 12:54:27 2011 +0000
+++ b/roundup/cgi/client.py	Fri Jul 15 14:05:29 2011 +0000
@@ -1024,7 +1024,7 @@
         message['Content-type'] = 'text/html; charset=utf-8'
         message.set_payload(content)
         encode_quopri(message)
-        self.mailer.smtp_send(to, str(message))
+        self.mailer.smtp_send(to, message.as_string())
     
     def renderFrontPage(self, message):
         """Return the front page of the tracker."""

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