-
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
idling but not moving messages #283
Comments
Upon further testing this looks like some form of off-by-one behaviour:
As there's times it picks up a mail coming in and does nothing with it until another comes in and then it may move both or only move the first one. |
I think the verbose output doesn't give us enough info as it only lists the command and the tagged result (ie. So for example in the debug log you provided, it's obvious that the 1st
For this reason there was nothing to do and it went back to IDLE. Do you have a debug log from an execution that you did right after SEARCH returned nothing, where moving took place? It would be useful to always run imapfilter with something like |
So I'm attempting move from polling to idling and have some weird behavior that if I call
enter_idle()
at the end of my function and there are messages that match the rule those are moved when startingimapfilter
but if a new one that matches comes in it is not moved when IDLE terminates only moving when the process is restarted. This happens on multiple IMAP servers and versions of imapfilter.my config file:
Here is the output from the command:
I have experienced this with both 2.6.12 and 2.8.1
The while loop is a little different to some examples:
due the normal loop not working on 2.6.12 with this server however the behaviour persists with the normal loop on 2.8.1
2.6.12-debug-received-whilst-idle.log
The text was updated successfully, but these errors were encountered: