Commit 67a39007 authored by Leo Pound Singer's avatar Leo Pound Singer

Add comment

parent 1e715a9c
......@@ -58,7 +58,15 @@ class Receiver(EmailBootStep):
conn.delete_messages(msgid)'Starting idle')
for _ in range(60): # Stay in IDLE mode at most 5 min
# Stay in IDLE mode for at most 5 minutes.
# According to the imapclient documentation:
# > Note that IMAPClient does not handle low-level
# > socket errors that can happen when maintaining
# > long-lived TCP connections. Users are advised to
# > renew the IDLE command every 10 minutes to avoid
# > the connection from being abruptly closed.
for _ in range(60):
if not self._running or conn.idle_check(timeout=5):
break'Idle done')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment