summaryrefslogtreecommitdiff
path: root/src/leap/mail
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-01-27 11:16:48 -0400
committerKali Kaneko <kali@leap.se>2015-02-11 14:05:44 -0400
commit3e4c33021250df02cc50868016b0a73d2f069a40 (patch)
tree9601e9a2f78b5a5448591cd2796c71e1bfca4d37 /src/leap/mail
parentad113e53d59213a5accc4f71564fd6ad0f73f74f (diff)
allow text/html for bodies
Diffstat (limited to 'src/leap/mail')
-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())