summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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())