Closed IngoMeyer441 closed 2 years ago
I am aware of this. It seems that the delay corresponds to the IDLE timeout for a given IMAP server. Google checks in after ~10 minutes, my hosted mail server ~2 minutes.
I suspect I should look into imaplib2
for an improvement. Since this "kind of" works but is not a trivial thing to debug/improve, I'll put it on my TODO list and deal with it as soon as I have some more free time...
After suspend, the log correctly protocols a resume event (and a network loss event), however the actual reconnection happens much later (there is a difference of about 17 minutes in my test):
If only the network connection drops, the reconnect step is performed after one minute:
The relevant code section looks good to me...