Code

fix construction of individual messages to nosy recipents with attachments
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 20 Jul 2009 06:24:52 +0000 (06:24 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 20 Jul 2009 06:24:52 +0000 (06:24 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4329 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
roundup/roundupdb.py

index 1b374185320fc7c697a2e8f334c589b72042c383..d0b84569b12a93ff772c3531fa6baf629599423c 100644 (file)
@@ -12,6 +12,8 @@ Fixes:
   see http://thread.gmane.org/gmane.comp.bug-tracking.roundup.user/9500
 - fix problem with bounce-message if incoming mail has insufficient
   privilege, e.g., user not existing (issue 2550534)
+- fix construction of individual messages to nosy recipents with
+  attachments (issue 2550568)
 
 
 2009-03-18 1.4.8 (r4209)
index 1a9f705e58871910e9e85087d1e320523cbde9de..998b29051912d85425cde44b47bf019abbf7ed12 100644 (file)
@@ -372,7 +372,7 @@ class IssueClass:
         charset = getattr(self.db.config, 'EMAIL_CHARSET', 'utf-8')
 
         # construct the content and convert to unicode object
-        content = unicode('\n'.join(m), 'utf-8').encode(charset)
+        body = unicode('\n'.join(m), 'utf-8').encode(charset)
 
         # make sure the To line is always the same (for testing mostly)
         sendto.sort()
@@ -459,7 +459,7 @@ class IssueClass:
             # attach files
             if message_files:
                 # first up the text as a part
-                part = MIMEText(content)
+                part = MIMEText(body)
                 encode_quopri(part)
                 message.attach(part)
 
@@ -494,7 +494,7 @@ class IssueClass:
                     message.attach(part)
 
             else:
-                message.set_payload(content)
+                message.set_payload(body)
                 encode_quopri(message)
 
             if first: