-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enter_idle doesn't (immediately) handle signals when timing out #230
Comments
Hm, this is strange because the
Probably there's some bug that I need to fix there, so I'll have a look... |
It seems to work as expected for me. With a config like this: myaccount = IMAP { ... }
print(myaccount.INBOX:enter_idle()) On a terminal I start imapfilter with $ imapfilter -v
[...]
C (3): 1005 SELECT "INBOX"
S (3): 1005 OK [READ-WRITE] Select completed (0.001 + 0.000 secs).
C (3): 1006 IDLE I then do S (3): 1006 OK Idle completed (1.291 + 1.291 + 1.290 secs).
true
C (3): 1007 LOGOUT
S (3): 1007 OK Logout completed (0.001 + 0.000 secs).
$ Can you provide an example or some details/steps on how I could reproduce the behavior you get? |
Hm, I couldn't reproduce by disconnecting my wired connection. I need to try on a laptop with wireless connection, in case that makes a difference. |
If I disconnect (unplug the network or whatever) while in IDLE, and then signal USR1, it doesn't handle the signal immediately, but instead waits for the timeout (or until plugged in again). This seems to happen often when switching wifi networks. It'd be nice if USR1 could make
enter_idle
leave that "waiting for network" state as well.The text was updated successfully, but these errors were encountered: