[imapfilter-devel] Improving Filter Writing Effeciency

Philippe LeCavalier support at plecavalier.com
Fri Jan 7 20:49:22 EET 2011


I have 3 IMAP accounts. I'm wondering if I can merge identical filters?
ie.

--Move Open
results = account1.INBOX:contain_subject('[OPEN]')
results:move_messages(account1['help/Open'])
results = account2.INBOX:contain_subject('[OPEN]')
results:move_messages(account2['help/Open'])

with something like:

--Move Open
results = account{1|2}.INBOX:contain_subject('[OPEN]')
results:move_messages(account{1|2}1['help/Open'])

I know the above syntax is incorrect; it's just for illustration
purposes.

Any thoughts?

Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20110107/5c34a327/attachment.html>


More information about the Imapfilter-devel mailing list