diff options
author | NavaL <ayoyo@thoughtworks.com> | 2016-10-21 21:11:22 +0200 |
---|---|---|
committer | NavaL <ayoyo@thoughtworks.com> | 2016-10-21 21:11:22 +0200 |
commit | aaed875ecce770bde03a2066ade40944cd1ab31d (patch) | |
tree | 8b1808dd803a1b45e1d3be394b97ac9010d9be96 /service/pixelated/adapter/mailstore/leap_mailstore.py | |
parent | 2dcdbc47e6232309329b4ec53f5daaab201d3d5b (diff) |
[#797] reinstating use of the provided email body charstet encoding
Diffstat (limited to 'service/pixelated/adapter/mailstore/leap_mailstore.py')
-rw-r--r-- | service/pixelated/adapter/mailstore/leap_mailstore.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/service/pixelated/adapter/mailstore/leap_mailstore.py b/service/pixelated/adapter/mailstore/leap_mailstore.py index 900a7cbb..288223dd 100644 --- a/service/pixelated/adapter/mailstore/leap_mailstore.py +++ b/service/pixelated/adapter/mailstore/leap_mailstore.py @@ -330,7 +330,8 @@ class LeapMailStore(MailStore): parser = BodyParser('', content_type='text/plain', content_transfer_encoding='UTF-8') # It fix the problem when leap doesn'r found body_phash and returns empty string if not isinstance(content_doc, str): - parser = BodyParser(content_doc.raw, content_type=content_doc.content_type, content_transfer_encoding=content_doc.content_transfer_encoding) + parser = BodyParser(content_doc.raw, content_type=content_doc.content_type, + content_transfer_encoding=content_doc.content_transfer_encoding, charset=content_doc.charset) defer.returnValue(parser.parsed_content()) |