[imapfilter-devel] enter_idle errors out of pcall
Paul
imapfilter at airbred.com
Wed Jun 23 08:59:52 EEST 2010
Hello all,
The main part of my script is this:
print "Idle..."
update = pcall(frommailbox:enter_idle())
Once idle exits, it loops around and processes whatever arrived in the
mailbox.
However, once in a while I get this:
imapfilter: reading data; EOF in violation of the protocol
I get this when the idle session is broken for whatever reason -
internet connection fails for example. But the purpose of the pcall
was to handle this, so if enter_idle fails for any reason, I don't care,
and am happy to loop around and get back the idle.
But no, the script exits anyway. Is there someway I can keep this going
- have I done the pcall wrong - or do I need to wrap the actual call to
imapfilter in a loop?
Thanks,
Paul
More information about the Imapfilter-devel
mailing list