mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-05-19 18:35:24 +00:00
4.3.6 - Be more forgiving for forensic reports with missing fields
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
4.3.6
|
||||
-----
|
||||
|
||||
- Be more forgiving for forensic reports with missing fields
|
||||
|
||||
4.3.5
|
||||
-----
|
||||
|
||||
|
||||
@@ -523,6 +523,12 @@ def parse_forensic_report(feedback_report, sample, msg_date,
|
||||
if "arrival_date" not in parsed_report:
|
||||
parsed_report["arrival_date"] = msg_date
|
||||
|
||||
if "version" not in parsed_report:
|
||||
parsed_report["version"] = 1
|
||||
|
||||
if "user_agent" not in parsed_report:
|
||||
parsed_report["user_agent"] = None
|
||||
|
||||
arrival_utc = human_timestamp_to_datetime(
|
||||
parsed_report["arrival_date"], to_utc=True)
|
||||
arrival_utc = arrival_utc.strftime("%Y-%m-%d %H:%M:%S")
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import platform
|
||||
|
||||
__version__ = "4.3.5"
|
||||
__version__ = "4.3.6"
|
||||
|
||||
USER_AGENT = "Mozilla/5.0 ((0 {1})) parsedmarc/{2}".format(
|
||||
platform.system(),
|
||||
|
||||
Reference in New Issue
Block a user