summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
Diffstat (limited to 'alot')
-rw-r--r--alot/db/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/db/utils.py b/alot/db/utils.py
index ea0963c1..94886148 100644
--- a/alot/db/utils.py
+++ b/alot/db/utils.py
@@ -446,9 +446,9 @@ def remove_cte(part, as_string=False):
sp = helper.try_decode(bp)
except UnicodeDecodeError as emsg:
# the mail contains chars that are not enc-encoded.
- # try again and just ignore those
+ # libmagic works better than just ignoring those
logging.debug('Decoding failure: {}'.format(emsg))
- sp = bp.decode(enc, errors='ignore')
+ sp = helper.try_decode(bp)
return sp
return bp