[imapfilter-devel] Problem with logical "not"

Philippe LeCavalier support at plecavalier.com
Thu Nov 11 17:26:54 EET 2010


Well, I've now realized all the mistakes I had in the config - and there
were several. But it disappoints me to know that I didn't get a single
sole to help me.

Is this not the appropriate list to ask for help with IMAPfilter?

Sincerely,
Phil

On Tue, 2010-11-09 at 22:23 -0500, Philippe LeCavalier wrote:

> 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 
> 
> _______________________________________________
> Imapfilter-devel mailing list
> Imapfilter-devel at lists.hellug.gr
> http://lists.hellug.gr/mailman/listinfo/imapfilter-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20101111/2651fc33/attachment.html>


More information about the Imapfilter-devel mailing list