From 2c723e85bba2844a1b893fa7b0fb015225353d8b Mon Sep 17 00:00:00 2001 From: Ross Poulton Date: Sat, 22 Aug 2009 06:30:09 +0000 Subject: [PATCH] Fixes issue #100: Non-ASCII characters in HTML email caused an exception to be thrown when importing emails. --- management/commands/get_email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/commands/get_email.py b/management/commands/get_email.py index 166dd5ba..5867455f 100644 --- a/management/commands/get_email.py +++ b/management/commands/get_email.py @@ -184,7 +184,7 @@ def ticket_from_message(message, queue, quiet): if part.get_content_subtype() == 'plain': body_plain = decodeUnknown(part.get_charset(), part.get_payload(decode=True)) else: - body_html = decodeUnknown(part.get_charset(), part.get_payload(decode=True)) + body_html = part.get_payload(decode=True) else: if not name: ext = mimetypes.guess_extension(part.get_content_type())