mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-05-03 02:25:24 +00:00
8.2.0 release
- Support non-standard, text-based forensic reports sent by some mail hosts - Set forensic report version to `None` (`null` in JSON) if the report was in a non-standard format and/or is missing a version number - The default value of the `mailbox` `batch_size` is now `10` (use `0` for no limit)
This commit is contained in:
@@ -6,6 +6,7 @@ Changelog
|
||||
|
||||
- Support non-standard, text-based forensic reports sent by some mail hosts
|
||||
- Set forensic report version to `None` (`null` in JSON) if the report was in a non-standard format and/or is missing a version number
|
||||
- The default value of the `mailbox` `batch_size` option is now `10` (use `0` for no limit)
|
||||
|
||||
8.1.1
|
||||
-----
|
||||
|
||||
+1
-1
@@ -203,7 +203,7 @@ The full set of configuration options are:
|
||||
- ``watch`` - bool: Use the IMAP ``IDLE`` command to process messages as they arrive or poll MS Graph for new messages
|
||||
- ``delete`` - bool: Delete messages after processing them, instead of archiving them
|
||||
- ``test`` - bool: Do not move or delete messages
|
||||
- ``batch_size`` - int: Number of messages to read and process before saving. Defaults to all messages if not set.
|
||||
- ``batch_size`` - int: Number of messages to read and process before saving. Default 10. Use 0 for no limit.
|
||||
|
||||
- ``imap``
|
||||
- ``host`` - str: The IMAP server hostname or IP address
|
||||
|
||||
+1
-1
@@ -195,7 +195,7 @@ The full set of configuration options are:
|
||||
- ``watch`` - bool: Use the IMAP ``IDLE`` command to process messages as they arrive or poll MS Graph for new messages
|
||||
- ``delete`` - bool: Delete messages after processing them, instead of archiving them
|
||||
- ``test`` - bool: Do not move or delete messages
|
||||
- ``batch_size`` - int: Number of messages to read and process before saving. Defaults to all messages if not set.
|
||||
- ``batch_size`` - int: Number of messages to read and process before saving. Default 10. Use 0 for no limit.
|
||||
|
||||
- ``imap``
|
||||
- ``host`` - str: The IMAP server hostname or IP address
|
||||
|
||||
@@ -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,6 +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)
|
||||
create_folders (bool): Whether to create the destination folders
|
||||
(not used in watch)
|
||||
|
||||
|
||||
@@ -393,8 +393,6 @@ def _main():
|
||||
opts.mailbox_test = mailbox_config.getboolean("test")
|
||||
if "batch_size" in mailbox_config:
|
||||
opts.mailbox_batch_size = mailbox_config.getint("batch_size")
|
||||
else:
|
||||
opts.mailbox_batch_size = None
|
||||
|
||||
if "imap" in config.sections():
|
||||
imap_config = config["imap"]
|
||||
@@ -467,8 +465,6 @@ def _main():
|
||||
"configuration section has been deprecated. "
|
||||
"Use this option in the mailbox configuration "
|
||||
"section instead.")
|
||||
else:
|
||||
opts.mailbox_batch_size = None
|
||||
|
||||
if "msgraph" in config.sections():
|
||||
graph_config = config["msgraph"]
|
||||
|
||||
Reference in New Issue
Block a user