From d8aee569f756112ceae5d66b46d9af93231d8d3e Mon Sep 17 00:00:00 2001 From: Sean Whalen <44679+seanthegeek@users.noreply.github.com> Date: Sat, 2 Nov 2024 09:50:55 -0400 Subject: [PATCH] Update __init__.py --- parsedmarc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsedmarc/__init__.py b/parsedmarc/__init__.py index 3b273a4..f62338b 100644 --- a/parsedmarc/__init__.py +++ b/parsedmarc/__init__.py @@ -1437,7 +1437,7 @@ def get_dmarc_reports_from_mailbox(connection: MailboxConnection, if since: _since = 1440 # default one day - if re.match(r'\d{1,2}[mhd]$', since): + if re.match(r'\d+[mhd]$', since): s = re.split(r'(\d+)', since) match s[2]: case 'm': _since = int(s[1])