mirror of https://github.com/MISP/misp-modules
Fix failing test (bug in the mail parser?)
parent
1a7973bc06
commit
3f83357a2d
|
@ -43,7 +43,7 @@ def handler(q=False):
|
||||||
# Extract all header information
|
# Extract all header information
|
||||||
all_headers = ""
|
all_headers = ""
|
||||||
for k, v in message.items():
|
for k, v in message.items():
|
||||||
all_headers += "{0}: {1}\n".format(k, v)
|
all_headers += "{0}: {1}\n".format(k.strip(), v.strip())
|
||||||
results.append({"values": all_headers,
|
results.append({"values": all_headers,
|
||||||
"types": ['email-header']})
|
"types": ['email-header']})
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ def handler(q=False):
|
||||||
"types": ['email-mime-boundary']})
|
"types": ['email-mime-boundary']})
|
||||||
|
|
||||||
# E-Mail Reply To
|
# E-Mail Reply To
|
||||||
results.append({"values": message.get('In-Reply-To'),
|
results.append({"values": message.get('In-Reply-To').strip(),
|
||||||
"types": ['email-reply-to']})
|
"types": ['email-reply-to']})
|
||||||
|
|
||||||
# X-Mailer
|
# X-Mailer
|
||||||
|
|
Loading…
Reference in New Issue