Skip to content

Commit 9481708

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 6c07be4 commit 9481708

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Fixed:
2020
- catch bad classname in URL (related to sf bug 1240541)
2121
- clean up digested_file_types (sf bug 1268303)
2222
- fix permission checks in mailgw (sf bug 1263655)
23+
- fix encoding of subject in generated error message (sf bug 1414465)
2324

2425

2526
2005-10-07 0.8.5

roundup/mailer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Sending Roundup-specific mail over SMTP.
22
"""
33
__docformat__ = 'restructuredtext'
4-
# $Id: mailer.py,v 1.10.2.1 2006-01-13 03:34:34 richard Exp $
4+
# $Id: mailer.py,v 1.10.2.2 2006-01-27 02:42:05 richard Exp $
55

66
import time, quopri, os, socket, smtplib, re
77

@@ -120,7 +120,7 @@ def bounce_message(self, bounced_message, to, error,
120120
part = writer.nextpart()
121121
part.addheader('Content-Transfer-Encoding', 'quoted-printable')
122122
body = part.startbody('text/plain; charset=utf-8')
123-
body.write('\n'.join(error))
123+
body.write(quopri.encodestring ('\n'.join(error)))
124124

125125
# attach the original message to the returned message
126126
part = writer.nextpart()

0 commit comments

Comments
 (0)