Skip to content

Commit 82f5b75

Browse files
author
Richard Jones
committed
fix construction of individual messages to nosy recipents with attachments
1 parent d30e400 commit 82f5b75

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Fixes:
1212
see http://thread.gmane.org/gmane.comp.bug-tracking.roundup.user/9500
1313
- fix problem with bounce-message if incoming mail has insufficient
1414
privilege, e.g., user not existing (issue 2550534)
15+
- fix construction of individual messages to nosy recipents with
16+
attachments (issue 2550568)
1517

1618

1719
2009-03-18 1.4.8 (r4209)

roundup/roundupdb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def send_message(self, nodeid, msgid, note, sendto, from_address=None,
372372
charset = getattr(self.db.config, 'EMAIL_CHARSET', 'utf-8')
373373

374374
# construct the content and convert to unicode object
375-
content = unicode('\n'.join(m), 'utf-8').encode(charset)
375+
body = unicode('\n'.join(m), 'utf-8').encode(charset)
376376

377377
# make sure the To line is always the same (for testing mostly)
378378
sendto.sort()
@@ -459,7 +459,7 @@ def send_message(self, nodeid, msgid, note, sendto, from_address=None,
459459
# attach files
460460
if message_files:
461461
# first up the text as a part
462-
part = MIMEText(content)
462+
part = MIMEText(body)
463463
encode_quopri(part)
464464
message.attach(part)
465465

@@ -494,7 +494,7 @@ def send_message(self, nodeid, msgid, note, sendto, from_address=None,
494494
message.attach(part)
495495

496496
else:
497-
message.set_payload(content)
497+
message.set_payload(body)
498498
encode_quopri(message)
499499

500500
if first:

0 commit comments

Comments
 (0)