From 1b443b8843541912c3a9dace352b21ffb89daf6e Mon Sep 17 00:00:00 2001 From: Sean Whalen <44679+seanthegeek@users.noreply.github.com> Date: Fri, 13 May 2022 10:40:32 -0400 Subject: [PATCH] Revert "Set default batch size at the config, not the function" This reverts commit c5a624274ca57bdd052ec294556d24a11c46bbe8. --- parsedmarc/__init__.py | 4 ++-- parsedmarc/cli.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/parsedmarc/__init__.py b/parsedmarc/__init__.py index 3af1513e..c03794b7 100644 --- a/parsedmarc/__init__.py +++ b/parsedmarc/__init__.py @@ -1034,7 +1034,7 @@ def get_dmarc_reports_from_mailbox(connection: MailboxConnection, dns_timeout=6.0, strip_attachment_payloads=False, results=None, - batch_size=None, + batch_size=10, create_folders=True): """ Fetches and parses DMARC reports from a mailbox @@ -1053,7 +1053,7 @@ def get_dmarc_reports_from_mailbox(connection: MailboxConnection, forensic report results results (dict): Results from the previous run batch_size (int): Number of messages to read and process before saving - (default is no limit) + (use 0 for no limit) create_folders (bool): Whether to create the destination folders (not used in watch) diff --git a/parsedmarc/cli.py b/parsedmarc/cli.py index 3f7d6467..35fa4c1d 100644 --- a/parsedmarc/cli.py +++ b/parsedmarc/cli.py @@ -263,7 +263,7 @@ def _main(): mailbox_watch=False, mailbox_delete=False, mailbox_test=False, - mailbox_batch_size=100, + mailbox_batch_size=None, imap_host=None, imap_skip_certificate_verification=False, imap_ssl=True,