Mercurial > p > roundup > code
diff roundup/mailer.py @ 3516:fe75b55fc49d
fix encoding of subject in generated error message [SF#1414465]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 27 Jan 2006 02:41:18 +0000 |
| parents | db856d488de0 |
| children | f43424d545a6 |
line wrap: on
line diff
--- a/roundup/mailer.py Fri Jan 27 02:39:42 2006 +0000 +++ b/roundup/mailer.py Fri Jan 27 02:41:18 2006 +0000 @@ -1,7 +1,7 @@ """Sending Roundup-specific mail over SMTP. """ __docformat__ = 'restructuredtext' -# $Id: mailer.py,v 1.12 2006-01-20 03:04:14 richard Exp $ +# $Id: mailer.py,v 1.13 2006-01-27 02:41:18 richard Exp $ import time, quopri, os, socket, smtplib, re @@ -120,7 +120,7 @@ part = writer.nextpart() part.addheader('Content-Transfer-Encoding', 'quoted-printable') body = part.startbody('text/plain; charset=utf-8') - body.write('\n'.join(error)) + body.write(quopri.encodestring ('\n'.join(error))) # attach the original message to the returned message part = writer.nextpart()
