mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-10-12 15:07:15 +00:00
Fopefolly final refactor fix
This commit is contained in:
1 parent
7728713ae8
commit
7867baa842
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user