diff roundup/mailgw.py @ 3976:7dc74da6c3e8

Fix mailgw total failure bounce message generation (thanks Bradley Dean)
author Richard Jones <richard@users.sourceforge.net>
date Wed, 23 Jul 2008 03:04:44 +0000
parents 22339538cf10
children 4b0ddce43d08
line wrap: on
line diff
--- a/roundup/mailgw.py	Mon Jul 21 01:44:58 2008 +0000
+++ b/roundup/mailgw.py	Wed Jul 23 03:04:44 2008 +0000
@@ -73,7 +73,7 @@
 an exception, the original message is bounced back to the sender with the
 explanatory message given in the exception.
 
-$Id: mailgw.py,v 1.195 2008-02-07 03:33:31 richard Exp $
+$Id: mailgw.py,v 1.196 2008-07-23 03:04:44 richard Exp $
 """
 __docformat__ = 'restructuredtext'
 
@@ -348,7 +348,7 @@
 
     def extract_content(self, parent_type=None, ignore_alternatives = False):
         """Extract the body and the attachments recursively.
-        
+
            If the content is hidden inside a multipart/alternative part,
            we use the *last* text/plain part of the *first*
            multipart/alternative in the whole message.
@@ -768,7 +768,7 @@
             m.append('An unexpected error occurred during the processing')
             m.append('of your message. The tracker administrator is being')
             m.append('notified.\n')
-            self.mailer.bounce_message(message, sendto[0][1], m)
+            self.mailer.bounce_message(message, [sendto[0][1]], m)
 
             m.append('----------------')
             m.append(traceback.format_exc())

Roundup Issue Tracker: http://roundup-tracker.org/