diff options
author | Kali Kaneko <kali@leap.se> | 2015-01-27 11:16:48 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-02-11 14:05:44 -0400 |
commit | 2a86e0c830bc4f93a7f261eaa8324e80d8e25b5d (patch) | |
tree | 1ab4ced219e1544466065d619784282d3cd6c5f6 /mail/src | |
parent | 8b7485bf81e2e46561dad26895c27cc1d0359e70 (diff) |
allow text/html for bodies
Diffstat (limited to 'mail/src')
-rw-r--r-- | mail/src/leap/mail/walk.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/src/leap/mail/walk.py b/mail/src/leap/mail/walk.py index 891abdc..9f5098d 100644 --- a/mail/src/leap/mail/walk.py +++ b/mail/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()) |