fix: major bugs but still it not properly evaluate soem mails
for recursive multipart bzr revid: mga@tinyerp.com-afd31127855d185da11529bf59236fe6d98812d1
This commit is contained in:
parent
be8fc4511c
commit
a012a084fc
|
@ -125,7 +125,6 @@ class email_parser(object):
|
|||
for part in msg.walk():
|
||||
if part.get_content_maintype() == 'multipart':
|
||||
continue
|
||||
print part.get_content_maintype() ,' - ', part.get_content_subtype();
|
||||
|
||||
if part.get_content_maintype()=='text' and part.get_content_subtype() == 'plain':
|
||||
message['body'] += part.get_payload(decode=True).decode(part.get_charsets()[0])
|
||||
|
|
Loading…
Reference in New Issue