From 7867baa8425d121f64b11c0625b636a04df8a18f Mon Sep 17 00:00:00 2001 From: Sean Whalen Date: Thu, 11 Oct 2018 13:46:38 -0400 Subject: [PATCH] Fopefolly final refactor fix --- parsedmarc/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parsedmarc/__init__.py b/parsedmarc/__init__.py index 50568e8..b8cec9b 100644 --- a/parsedmarc/__init__.py +++ b/parsedmarc/__init__.py @@ -640,9 +640,10 @@ def parse_report_email(input_, nameservers=None, timeout=2.0): if is_outlook_msg(input_): input_ = convert_outlook_msg(input_) msg = mailparser.parse_from_string(input_) + msg_headers = msg.headers_json + msg = email.message_from_string(input_) except Exception as e: raise ParserError(e.__str__()) - msg_headers = msg.headers_json date = email.utils.format_datetime(datetime.utcnow()) subject = None feedback_report = None