<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
Hi. I just started using IMAPfilter a few days ago. I'm having a hard time with a certain rule:<BR>
<BR>
results = account1.INBOX:contain_from('domain.com') -<BR>
(account1.INBOX:contain_to('virusalert@domain.com') +<BR>
account1.INBOX:contain_from('Cron Daemon') +<BR>
account1.INBOX:contain_from('Firewall Notification System'))<BR>
results:move_messages(account1['Customers/domain'])<BR>
<BR>
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.<BR>
<BR>
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.<BR>
<BR>
Any advance/guidance would be appreciated.<BR>
<BR>
Cheers,<BR>
Phil
</BODY>
</HTML>