From: schlatterbeck Date: Fri, 15 Jul 2011 14:05:29 +0000 (+0000) Subject: Fix issue2550691 where a Unix From-Header was sometimes inserted in X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1184281ead46ac2e354b515a19f91947372398d8;p=roundup.git Fix issue2550691 where a Unix From-Header was sometimes inserted in outgoing emails, thanks to Joseph Myers for the patch. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4635 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index a2d6f8c..d2ff695 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -46,6 +46,8 @@ Fixed: 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) diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py index 3daeb8b..ff4573a 100644 --- a/roundup/cgi/client.py +++ b/roundup/cgi/client.py @@ -1024,7 +1024,7 @@ class Client: 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."""