mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-07-08 17:55:08 +00:00
Fix IMAP reconnection
This commit is contained in:
@@ -1529,6 +1529,7 @@ def watch_inbox(host, username, password, callback, reports_folder="INBOX",
|
||||
logger.debug("IMAP error: Broken pipe")
|
||||
logger.debug("Reconnecting watcher")
|
||||
server = imapclient.IMAPClient(host)
|
||||
server.login(username, password)
|
||||
server.select_folder(rf)
|
||||
idle_start_time = time.monotonic()
|
||||
ms = "MOVE" in get_imap_capabilities(server)
|
||||
|
||||
Reference in New Issue
Block a user