Fix IMAP reconnection

This commit is contained in:
Sean Whalen
2018-09-21 23:45:24 -04:00
parent 5657a27262
commit b11c6d587c
+1
View File
@@ -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)