Add support for 'image' type

This commit is contained in:
Erwin Junge
2015-10-20 12:45:28 +02:00
parent 603ff7daf9
commit 440d73ffe7

View File

@@ -132,7 +132,7 @@ def parse_email(raw_email):
}
attachments = []
if maintype == 'multipart':
if maintype in ('multipart', 'image'):
logger.debug("Multipart message. Will process parts.")
for part in email_message.walk():
content_type = part.get_content_type()