Fix crash when Arrival-Date header is missing in a forensic report

This commit is contained in:
Sean Whalen
2018-11-18 18:55:42 -05:00
parent 85489d9ea9
commit f5956ccd5b
2 changed files with 3 additions and 1 deletions

View File

@@ -7,6 +7,8 @@
as `text` instead of `long` (Closes issue #31)
- Bugfix: IDLE email processing in Gmail/G-Suite accounts (closes issue #33)
- Bugfix: Fix inaccurate DNS timeout in CLI documentation (closes issue #34)
- Bugfix: Crash when `Arrival-Date` header is missing in a
forensic/fialure/ruf report
- IMAP reliability improvements
- Save data in separate indexes each day to make managing data retention easier
- Cache DNS queries in memory

View File

@@ -527,7 +527,7 @@ def parse_forensic_report(feedback_report, sample, msg_date,
parsed_report[key] = report_value[1]
if "arrival_date" not in parsed_report:
parsed_report["arrival_date"] = msg_date
parsed_report["arrival_date"] = msg_date.isoformat()
if "version" not in parsed_report:
parsed_report["version"] = 1