From 2a86e0c830bc4f93a7f261eaa8324e80d8e25b5d Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 27 Jan 2015 11:16:48 -0400 Subject: allow text/html for bodies --- mail/src/leap/mail/walk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/src/leap/mail/walk.py b/mail/src/leap/mail/walk.py index 891abdc9..9f5098dd 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()) -- cgit v1.2.3