From c04d1ce20473b25708e6072b611be8d4c04bcb9e 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 --- src/leap/mail/walk.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) -- cgit v1.2.3