You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use imapfilter just for IMAP IDLE: when I get a new email it fires a script. A few months ago imapfilter would die every 8 hours or so and I would have to manually restart. I finally got around to checking the changelog and I see that how recovery is done was reworked a few months ago.
I've been trying to get enter_idle() to recover using the new functionality but I'm not making any progress. As you will be able to infer, I don't really know what I'm doing.
Here is what my script used to do:
while my_account.INBOX:enter_idle() do
os.execute("/path/to/script")
end
I just borrowed this from somewhere else but it seemed to work well enough.
I've tried a bunch of things and I'll just list a couple. Following the examples in the samples/extend.lua page:
function doidle ()
my_account:enter_idle()
os.execute("/path/to/script")
end
while true do
recover (doidle)
end
Sort of combining the above with what I had earlier:
while recover(my_account.INBOX:enter_idle()) do
os.execute("/path/to/script
end
I think I am just fundamentally misunderstanding how recover() and/or enter_idle() work. Any help is greatly appreciate.
Love imapfilter by the way. Before I found it I was getting imap idle through some node.js script and it was extremely flaky. imapfilter has been absolutely solid for me.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I use imapfilter just for IMAP IDLE: when I get a new email it fires a script. A few months ago imapfilter would die every 8 hours or so and I would have to manually restart. I finally got around to checking the changelog and I see that how recovery is done was reworked a few months ago.
I've been trying to get
enter_idle()
to recover using the new functionality but I'm not making any progress. As you will be able to infer, I don't really know what I'm doing.Here is what my script used to do:
I just borrowed this from somewhere else but it seemed to work well enough.
I've tried a bunch of things and I'll just list a couple. Following the examples in the samples/extend.lua page:
Sort of combining the above with what I had earlier:
I think I am just fundamentally misunderstanding how
recover()
and/orenter_idle()
work. Any help is greatly appreciate.Love imapfilter by the way. Before I found it I was getting imap idle through some node.js script and it was extremely flaky. imapfilter has been absolutely solid for me.
Beta Was this translation helpful? Give feedback.
All reactions