mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-10-19 01:48:11 +00:00
Workaround for forensic/ruf reports that are missing Reported-Domain
This commit is contained in:
1 parent
f1fa8709c2
commit
66af8e6090
2 files changed
+7
-2
No files matched your search
+2
-1
@@ -1,7 +1,8 @@
|
||||
4.1.9
|
||||
-----
|
||||
|
||||
- Workaround for forensic/ruf reports that are missing `Arrival-Date`
|
||||
- Workaround for forensic/ruf reports that are missing `Arrival-Date` and/or
|
||||
`Reported-Domain`
|
||||
|
||||
4.1.8
|
||||
-----
|
||||
|
||||
@@ -856,7 +856,11 @@ def parse_forensic_report(feedback_report, sample, sample_headers_only,
|
||||
if "date_utc" in received:
|
||||
received["date_utc"] = received["date_utc"].replace("T",
|
||||
" ")
|
||||
parsed_sample["from"] = convert_address(parsed_sample["from"][0])
|
||||
msg_from = convert_address(parsed_sample["from"][0])
|
||||
parsed_sample["from"] = msg_from
|
||||
if "reported_domain" not in parsed_report:
|
||||
domain = msg_from["address"].split("@")[-1].lower()
|
||||
parsed_report["reported_domain"] = domain
|
||||
|
||||
if "reply_to" in parsed_sample:
|
||||
parsed_sample["reply_to"] = list(map(lambda x: convert_address(x),
|
||||
|
||||
Reference in new issue
Block a user