Fixes issue #100: Non-ASCII characters in HTML email caused an exception

to be thrown when importing emails.
This commit is contained in:
Ross Poulton 2009-08-22 06:30:09 +00:00
parent dc5ea4306a
commit 2c723e85bb

View File

@ -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())