diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-02-27 10:09:21 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-03-01 10:34:56 -0800 |
commit | 29fe4c2f6f7a9d3f5e4b5e9818c26075ec263156 (patch) | |
tree | 76247e3ef4b43175c701456256d2b60e0b820773 /alot/db/utils.py | |
parent | af3963d605a67a30074c3cd8baca355a7dfdec05 (diff) |
Revert "If there are errors in the decoding the content replace"
This reverts commit c7ec811b45d3c6c964cffbfc585f02d54d373ef3.
Diffstat (limited to 'alot/db/utils.py')
-rw-r--r-- | alot/db/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/db/utils.py b/alot/db/utils.py index 2b3dab24..3244be13 100644 --- a/alot/db/utils.py +++ b/alot/db/utils.py @@ -352,7 +352,7 @@ def extract_body(mail, types=None, field_key='copiousoutput'): continue enc = part.get_content_charset() or 'ascii' - raw_payload = part.get_payload(decode=True).decode(enc, errors='replace') + raw_payload = part.get_payload(decode=True).decode(enc) if ctype == 'text/plain': body_parts.append(string_sanitize(raw_payload)) |