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])