Always send creds when reconnecting to IMAP

This commit is contained in:
Sean Whalen
2018-09-24 05:17:29 -04:00
parent b11c6d587c
commit 2a4f558bbc

View File

@@ -1590,6 +1590,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()
res = get_dmarc_reports_from_inbox(connection=server,