Workaround unexpected IMAP response reported in issue #75

This commit is contained in:
Sean Whalen
2019-05-01 08:46:25 -04:00
parent 20ff722f30
commit 34e428f1cf
+1 -1
View File
@@ -1698,7 +1698,7 @@ def watch_inbox(host, username, password, callback, port=None, ssl=True,
idle_start_time = time.monotonic()
for response in responses:
logging.debug("Received response: {0}".format(response))
if int(response[0]) > 0 and response[1] == b'RECENT':
if response[0] != 0 and response[1] == b'RECENT':
server.idle_done()
res = get_dmarc_reports_from_inbox(connection=server,
move_supported=ms,