Skip to content

Commit f0b3f5f

Browse files
author
Richard Jones
committed
Fix mailgw total failure bounce message generation (thanks Bradley Dean)
1 parent 57b71bd commit f0b3f5f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Fixed:
66
- 'Make a Copy' failed with more than one person in nosy list (sf #1906147)
77
- xml-rpc security checks and tests across all backends (sf #1907211)
88
- Send a Precedence header in email so autoresponders don't
9+
- Fix mailgw total failure bounce message generation (thanks Bradley Dean)
910

1011

1112
2008-03-01 1.4.4

doc/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Wil Cooley,
8282
Joe Cooper,
8383
Kelley Dagley,
8484
Bruno Damour,
85+
Bradley Dean,
8586
Toby Dickenson,
8687
Paul F. Dubois,
8788
Eric Earnst,

roundup/mailgw.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class node. Any parts of other types are each stored in separate files
7373
an exception, the original message is bounced back to the sender with the
7474
explanatory message given in the exception.
7575
76-
$Id: mailgw.py,v 1.195 2008-02-07 03:33:31 richard Exp $
76+
$Id: mailgw.py,v 1.196 2008-07-23 03:04:44 richard Exp $
7777
"""
7878
__docformat__ = 'restructuredtext'
7979

@@ -348,7 +348,7 @@ def getbody(self):
348348

349349
def extract_content(self, parent_type=None, ignore_alternatives = False):
350350
"""Extract the body and the attachments recursively.
351-
351+
352352
If the content is hidden inside a multipart/alternative part,
353353
we use the *last* text/plain part of the *first*
354354
multipart/alternative in the whole message.
@@ -768,7 +768,7 @@ def handle_Message(self, message):
768768
m.append('An unexpected error occurred during the processing')
769769
m.append('of your message. The tracker administrator is being')
770770
m.append('notified.\n')
771-
self.mailer.bounce_message(message, sendto[0][1], m)
771+
self.mailer.bounce_message(message, [sendto[0][1]], m)
772772

773773
m.append('----------------')
774774
m.append(traceback.format_exc())

0 commit comments

Comments
 (0)