Index: roundup/roundupdb.py =================================================================== --- roundup/roundupdb.py (revision 4319) +++ roundup/roundupdb.py (working copy) @@ -372,7 +372,7 @@ 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 @@ # attach files if message_files: # first up the text as a part - part = MIMEText(content) + part = MIMEText(body) encode_quopri(part) message.attach(part) @@ -488,7 +488,7 @@ mime_type = 'application/octet-stream' main, sub = mime_type.split('/') part = MIMEBase(main, sub) - part.set_payload(content) + part.set_payload(body) Encoders.encode_base64(part) part['Content-Disposition'] = 'attachment;\n filename="%s"'%name message.attach(part)