http://moiristo.wordpress.com/2008/11/18/sorting-imap-mail-with-imapfilter/
I struggled a bit to use imapfilter to delete the mails at the server.
The following was configuration
--------------
-- Options --
---------------
options.timeout = 120
options.subscribe = true
----------------
-- Accounts --
----------------
-- Connects to "imap1.mail.server", as user "user1" with "secret1" as
-- password.
account1 = IMAP {
server = 'myserver.com',
port = 993,
username = 'username',
password = 'password.',
ssl = 'tls1',
}
results = account1.INBOX:contain_subject('Subject')
-- Delete messages. This DOES NOT Work.
-- results:delete_messages()
-- This Works
account1.INBOX:delete_messages(results)
No comments:
Post a Comment