summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-01-27 11:16:48 -0400
committerKali Kaneko <kali@leap.se>2015-01-27 11:16:48 -0400
commitc04d1ce20473b25708e6072b611be8d4c04bcb9e (patch)
tree9601e9a2f78b5a5448591cd2796c71e1bfca4d37
parentaa7c770e6a88b7d9dc43e7446ea79e5e705586b8 (diff)
allow text/html for bodies
-rw-r--r--src/leap/mail/walk.py3
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())