Skip to content
This repository has been archived by the owner on Dec 4, 2019. It is now read-only.

Commit

Permalink
Ensure we always decode the payload content
Browse files Browse the repository at this point in the history
  • Loading branch information
Toby White committed Jul 28, 2010
1 parent 20c281e commit d0693c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mail.py
Expand Up @@ -74,7 +74,7 @@ def translate_message(self, msg):

# If there's just a plain text body, use that, otherwise
# iterate over all the attachments
payload = msg.get_payload()
payload = msg.get_payload(decode=True)
if isinstance(payload, basestring):
message.body = payload
else:
Expand Down

0 comments on commit d0693c1

Please sign in to comment.