Permalink
Browse files

Fix method call in mail.py for some multipart messages

  • Loading branch information...
1 parent b59d19b commit 0038d4d690c2286b10e70e06dcb9d1a208cbafaa Toby White committed Aug 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 mail.py
View
@@ -91,7 +91,7 @@ def translate_message(self, msg):
elif part.get_content_type() == 'text/html' and not html:
html = part.get_payload(decode=True)
elif not part.get_content_type().startswith('multipart'):
- attachments.append((get_filename(part), part.get_payload(decode=True)))
+ attachments.append((self.get_filename(part), part.get_payload(decode=True)))
if not body:
raise BadMessageError("No message body specified")
message.body = body

0 comments on commit 0038d4d

Please sign in to comment.