From d0693c15549371943a23beda71eb9566ce651c25 Mon Sep 17 00:00:00 2001 From: Toby White Date: Wed, 28 Jul 2010 18:32:03 +0100 Subject: [PATCH] Ensure we always decode the payload content --- mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail.py b/mail.py index af499fc..ae641a4 100644 --- a/mail.py +++ b/mail.py @@ -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: