Misc. fixes.

This commit is contained in:
tonio
2010-10-25 17:45:44 +02:00
parent dbaaceb622
commit 1bad67de74
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -180,7 +180,8 @@ class Email(object):
text, html, calendar, etc. All those contents can be displayed
inside a navigator.
"""
if msg.get_content_subtype() == "calendar":
if msg.get_content_subtype() not in ["plain", "html"]:
self.__parse_default(msg, level)
target = "plain"
else:
target = msg.get_content_subtype()