[imapfilter-devel] Problem with logical "not"
Philippe LeCavalier
support at plecavalier.com
Wed Nov 10 05:23:45 EET 2010
Hi. I just started using IMAPfilter a few days ago. I'm having a hard
time with a certain rule:
results = account1.INBOX:contain_from('domain.com') -
(account1.INBOX:contain_to('virusalert at domain.com') +
account1.INBOX:contain_from('Cron Daemon') +
account1.INBOX:contain_from('Firewall Notification System'))
results:move_messages(account1['Customers/domain'])
The goal is to have all the mail from that client go into a folder
called Customers/domain. And I do this for all my customers. For the
ones that send more mail I have sub-folders to further sort the mail, as
you can see above. I would also create
Customer/domain/cron, ../../firewall & ../../virusalerts folders and
respected filters. All these simpler filters work fine except that the
main one, the one above, ignores the "-" not logic and puts mail from
cron(and all the others) in the main folder for that customer. ie
INBOX/domain instead of ignoring it as I'm indicating with the "not"
logic operator.
I'm assuming I haven't created this filter properly or that there is
something more to this I don't yet grasp. One question that came to mind
was whether I even need to specify "not" for this filter if I put the
domain-wide filter "results = account1.INBOX:contain_from('domain.com')"
below all the others (cron and firewall...etc) IMAPfilter will follow
the chronological order and thus eliminating the need to negate these
from the broader filter? I've tried with and without the parentheses and
that didn't seem to help.
Any advance/guidance would be appreciated.
Cheers,
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20101109/8ed0faaf/attachment.html>
More information about the Imapfilter-devel
mailing list