diff options
author | Kali Kaneko <kali@leap.se> | 2015-01-27 11:16:48 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-01-27 11:16:48 -0400 |
commit | c04d1ce20473b25708e6072b611be8d4c04bcb9e (patch) | |
tree | 9601e9a2f78b5a5448591cd2796c71e1bfca4d37 | |
parent | aa7c770e6a88b7d9dc43e7446ea79e5e705586b8 (diff) |
allow text/html for bodies
-rw-r--r-- | src/leap/mail/walk.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/mail/walk.py b/src/leap/mail/walk.py index 891abdc..9f5098d 100644 --- a/src/leap/mail/walk.py +++ b/src/leap/mail/walk.py @@ -62,7 +62,8 @@ def get_body_phash(msg): Find the body payload-hash for this message. """ for part in msg.walk(): - if part.get_content_type() == "text/plain": + # XXX what other ctypes should be considered body? + if part.get_content_type() in ("text/plain", "text/html"): # XXX avoid hashing again return get_hash(part.get_payload()) |