[imapfilter-devel] Handle reconnect?
Hawk Anonymous
p91 at gmx.de
Fri Jul 15 21:12:49 EEST 2011
Hi,
following problem.
I am using imapfilter to sort my mails.
To do this I do the following:
options.timeout = 120
options.subscribe = true
options.certificates = false
function connect()
myaccount = IMAP {bla}
end
function sortMAIL()
...
end
function sortMAIL_ignore_errors()
pcall(sortMAIL)
end
connect()
sortMAIL_ignore_errors()
while true do
connect()
while myaccount.INBOX:enter_idle() do
sortMAIL_ignore_errors()
end
end
Problem is, once I need to reconnect (all 24h) I have to manually start
imapfilter again.
I tried to run it on ppp up but since I updated to the newest debian
version, this doesn't seem to work anymore (or I am doing something
wrong ^^)
Is there a way to handle this?
is the problem what I do not properly handle the errors?
Maybe add this to daemon mode on the first place?
With best regards
p90
More information about the Imapfilter-devel
mailing list