mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-02-19 07:56:23 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
debc28cc6e | ||
|
|
52ccf0536c |
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@@ -101,6 +101,7 @@
|
||||
"sourcetype",
|
||||
"STARTTLS",
|
||||
"tasklist",
|
||||
"timespan",
|
||||
"tlsa",
|
||||
"tlsrpt",
|
||||
"toctree",
|
||||
|
||||
10
CHANGELOG.md
10
CHANGELOG.md
@@ -1,6 +1,16 @@
|
||||
Changelog
|
||||
=========
|
||||
|
||||
8.15.4
|
||||
------
|
||||
|
||||
- Fix crash if aggregate report timespan is > 24 hours
|
||||
|
||||
8.15.3
|
||||
------
|
||||
|
||||
- Ignore aggregate reports with a timespan of > 24 hours (Fixes #282)
|
||||
|
||||
8.15.2
|
||||
------
|
||||
|
||||
|
||||
1
build.sh
1
build.sh
@@ -9,6 +9,7 @@ fi
|
||||
. venv/bin/activate
|
||||
pip install .[build]
|
||||
ruff format .
|
||||
ruff check .
|
||||
cd docs
|
||||
make clean
|
||||
make html
|
||||
|
||||
@@ -34,7 +34,7 @@ from parsedmarc.utils import is_outlook_msg, convert_outlook_msg
|
||||
from parsedmarc.utils import parse_email
|
||||
from parsedmarc.utils import timestamp_to_human, human_timestamp_to_datetime
|
||||
|
||||
__version__ = "8.15.2"
|
||||
__version__ = "8.15.4"
|
||||
|
||||
logger.debug("parsedmarc v{0}".format(__version__))
|
||||
|
||||
@@ -519,7 +519,7 @@ def parse_aggregate_report_xml(
|
||||
date_range = report["report_metadata"]["date_range"]
|
||||
if int(date_range["end"]) - int(date_range["begin"]) > 2 * 86400:
|
||||
_error = "Time span > 24 hours - RFC 7489 section 7.2"
|
||||
errors.append(_error)
|
||||
raise InvalidAggregateReport(_error)
|
||||
date_range["begin"] = timestamp_to_human(date_range["begin"])
|
||||
date_range["end"] = timestamp_to_human(date_range["end"])
|
||||
new_report_metadata["begin_date"] = date_range["begin"]
|
||||
|
||||
Reference in New Issue
Block a user