[imapfilter-devel] become_daemon
guillaume sauvenay
gu1om at yahoo.fr
Tue Nov 20 14:25:19 EET 2007
Hi
i'm trying to use imapfilter as a daemon to move periodically my messages in subfolders.
so, i'm using the become_daemon function
but, even if the daemon is running and the filters applied (i see periodic success in file debug), messages are only moved the first time the filters are applied, new incoming messages are not moved.
i'm using IMAPFilter 2.0.3 on mandriva, and my configuration looks like this (with real parameters) :
---------------config.lua--------------
options.timeout = 120
options.subscribe = true
options.info = true
account1 = IMAP {
server = 'myserver',
username = 'myusername',
-- password = '',
ssl = 'ssl3',
}
mailboxes, folders = account1:list_all()
mailboxes, folders = account1:list_subscribed()
function mesfiltres()
result = account1.INBOX:contain_subject('mysubject')
account1.INBOX:move_messages(account1['mysubfolder'], result)
end
become_daemon(60, mesfiltres)
------------------------------------------
and in my file debug, there is many lines of successful search, but no move :
sending command (5):
1011 UID SEARCH ALL SUBJECT "mysubject"
if someone can help me, i would appreciate :-)
Guillaume
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20071120/f8277721/attachment.htm>
More information about the Imapfilter-devel
mailing list