mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-10-05 20:10:31 +00:00
Normalize aggregate report IDs
This commit is contained in:
+6
-2
@@ -1,10 +1,14 @@
|
||||
3.0.0
|
||||
-----
|
||||
### New features
|
||||
- Add option to select the IMAP folder where reports are stored
|
||||
- Add options to send data to Elasticsearch
|
||||
|
||||
### Changes
|
||||
- Detect aggregate report email attachments by file content rather than
|
||||
file extension
|
||||
- In an aggregate report's `org_name` is a FQDN, the base is used
|
||||
- Add option to select the IMAP folder where reports are stored
|
||||
- Add options to send data to Elasticsearch
|
||||
- Normalize aggregate report IDs
|
||||
|
||||
2.1.2
|
||||
-----
|
||||
|
||||
@@ -424,6 +424,10 @@ def parse_aggregate_report_xml(xml, nameservers=None, timeout=6.0):
|
||||
extra = report_metadata["extra_contact_info"]
|
||||
new_report_metadata["org_extra_contact_info"] = extra
|
||||
new_report_metadata["report_id"] = report_metadata["report_id"]
|
||||
report_id = new_report_metadata["report_id"]
|
||||
report_id = report_id.replace("<",
|
||||
"").replace(">", "").split("@")[0]
|
||||
report_metadata["report_id"] = report_id
|
||||
date_range = report["report_metadata"]["date_range"]
|
||||
date_range["begin"] = _timestamp_to_human(date_range["begin"])
|
||||
date_range["end"] = _timestamp_to_human(date_range["end"])
|
||||
|
||||
Reference in New Issue
Block a user