4.3.6 - Be more forgiving for forensic reports with missing fields

This commit is contained in:
Sean Whalen
2018-10-19 11:07:35 -04:00
parent 4b1721a96d
commit 446732dad2
3 changed files with 12 additions and 1 deletions
+5
View File
@@ -1,3 +1,8 @@
4.3.6
-----
- Be more forgiving for forensic reports with missing fields
4.3.5
-----
+6
View File
@@ -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")
+1 -1
View File
@@ -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(),