Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 'since' option to search for messages since a certain time #527

Merged
merged 10 commits into from
Nov 2, 2024
Prev Previous commit
Next Next commit
Update __init__.py
seanthegeek authored Nov 2, 2024
commit 6d467c93f925a9c558072b4934d7a61b74136769
4 changes: 3 additions & 1 deletion parsedmarc/__init__.py
Original file line number Diff line number Diff line change
@@ -1450,7 +1450,9 @@ def get_dmarc_reports_from_mailbox(connection: MailboxConnection,
else:
logger.warning("Incorrect format for \'since\' option. \
Provided value:{0}, Expected values:(5m|3h|2d|1w). \
Ignoring option, fetching messages for last 24hrs"
Ignoring option, fetching messages for last 24hrs" \
"SMTP does not support a time or timezone in since."
"See https://www.rfc-editor.org/rfc/rfc3501#page-52"
.format(since))

if isinstance(connection, IMAPConnection):
seanthegeek marked this conversation as resolved.
Show resolved Hide resolved