mirror of https://github.com/MISP/mail_to_misp
fix
parent
e1ade5b8d7
commit
5318c7b5a7
|
@ -80,10 +80,7 @@ for part in msg.walk():
|
||||||
continue
|
continue
|
||||||
if part.get_content_maintype() == 'text':
|
if part.get_content_maintype() == 'text':
|
||||||
part.set_charset(charset)
|
part.set_charset(charset)
|
||||||
try:
|
syslog.syslog(str(part.get_payload(decode=True)))
|
||||||
syslog.syslog(str(part.get_payload(decode=True))
|
|
||||||
except Exception as e:
|
|
||||||
syslog.syslog(str(e))
|
|
||||||
email_data += part.get_payload(decode=True)
|
email_data += part.get_payload(decode=True)
|
||||||
print("here")
|
print("here")
|
||||||
email_subject += mail_subject
|
email_subject += mail_subject
|
||||||
|
|
Loading…
Reference in New Issue