From c5a624274ca57bdd052ec294556d24a11c46bbe8 Mon Sep 17 00:00:00 2001 From: Sean Whalen <44679+seanthegeek@users.noreply.github.com> Date: Fri, 13 May 2022 09:50:14 -0400 Subject: [PATCH] Set default batch size at the config, not the function --- 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 c03794b..3af1513 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=10, + batch_size=None, 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 - (use 0 for no limit) + (default is 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 35fa4c1..3f7d646 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=None, + mailbox_batch_size=100, imap_host=None, imap_skip_certificate_verification=False, imap_ssl=True,