Skip to content

Commit dcd48e6

Browse files
author
Richard Jones
committed
fix encoding of subject in generated error message [SF#1414465]
1 parent a4faffd commit dcd48e6

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
@@ -75,6 +75,7 @@ Fixed:
7575
- catch bad classname in URL (related to sf bug 1240541)
7676
- clean up digested_file_types (sf bug 1268303)
7777
- fix permission checks in mailgw (sf bug 1263655)
78+
- fix encoding of subject in generated error message (sf bug 1414465)
7879

7980

8081
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.12 2006-01-20 03:04:14 richard Exp $
4+
# $Id: mailer.py,v 1.13 2006-01-27 02:41:18 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)