Fix since option to correctly work with weeks (#604)

This commit is contained in:
alagendijk-minddistrict
2025-08-15 00:39:04 +02:00
committed by GitHub
parent d62001f5a4
commit 880d7110fe
2 changed files with 4 additions and 2 deletions

View File

@@ -6,6 +6,8 @@ Changelog
- Fix CSV download
- Fix since option to correctly work with weeks
8.18.4
------
@@ -693,7 +695,7 @@ in the ``elasticsearch`` configuration file section (closes issue #78)
-----
- Add filename and line number to logging output
- Improved IMAP error handling
- Improved IMAP error handling
- Add CLI options
```text

View File

@@ -1580,7 +1580,7 @@ def get_dmarc_reports_from_mailbox(
if since:
_since = 1440 # default one day
if re.match(r"\d+[mhd]$", since):
if re.match(r"\d+[mhdw]$", since):
s = re.split(r"(\d+)", since)
if s[2] == "m":
_since = int(s[1])