Skip to content

Commit

Permalink
Merge pull request #78 from AdamNiederer/patch-2
Browse files Browse the repository at this point in the history
Permissively Decode Emails
  • Loading branch information
martinrusev authored Jan 28, 2017
2 parents d792a28 + ba913fe commit 89a7f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imbox/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def decode_content(message):
content = message.get_payload(decode=True)
charset = message.get_content_charset('utf-8')
try:
return content.decode(charset)
return content.decode(charset, 'ignore')
except AttributeError:
return content

Expand Down

0 comments on commit 89a7f8e

Please sign in to comment.