From 7688d00226f65b3c3e4391b3b6d975b1020d0555 Mon Sep 17 00:00:00 2001 From: Sean Whalen <44679+seanthegeek@users.noreply.github.com> Date: Fri, 20 Mar 2026 18:49:09 -0400 Subject: [PATCH] Update parsedmarc/cli.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- parsedmarc/cli.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/parsedmarc/cli.py b/parsedmarc/cli.py index 1d33448f..2c9b4203 100644 --- a/parsedmarc/cli.py +++ b/parsedmarc/cli.py @@ -1995,6 +1995,12 @@ def _main(): logger.info("Watching for email - Quit with ctrl-c") while True: + # Re-check mailbox_watch in case a config reload disabled watch mode + if not opts.mailbox_watch: + logger.info( + "Mailbox watch disabled in reloaded configuration, stopping watcher" + ) + break try: watch_inbox( mailbox_connection=mailbox_connection,