Fix failing test (bug in the mail parser?)

pr/62
Raphaël Vinot 2017-01-06 18:56:29 -05:00
parent 1a7973bc06
commit 3f83357a2d
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ def handler(q=False):
# Extract all header information
all_headers = ""
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,
"types": ['email-header']})
@ -52,7 +52,7 @@ def handler(q=False):
"types": ['email-mime-boundary']})
# 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']})
# X-Mailer