Tripp,

Let's say I want to filter on any combination of 2 from the following:
VALFROM, VALREVDNS, VALHELO.  

Would it be possible to do it all in a single rule?

This is what I would like to combine into one (it's currently split in 2
'cause of the weird behavior of the first condition)

Rule 1
H~X-IMAIL-SPAM-VALHELO!AND!H~(X-IMAIL-SPAM-VALREVDNS|X-IMAIL-SPAM-VALFROM):!
[EMAIL PROTECTED]

Rule 2
H~X-IMAIL-SPAM-VALREVDNS!AND!H~X-IMAIL-SPAM-VALFROM:[EMAIL PROTECTED]

Currently it's catching any combination of

X-IMAIL-SPAM-VALHELO AND X-IMAIL-SPAM-VALREVDNS
X-IMAIL-SPAM-VALHELO AND X-IMAIL-SPAM-VALFROM
X-IMAIL-SPAM-VALFROM AND X-IMAIL-SPAM-VALREVDNS

I don't want to filter on only 1 match.

Hope this explains it better.

Thanks

gd


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tripp Allen
Sent: Wednesday, June 23, 2004 6:06 PM
To: [EMAIL PROTECTED]
Subject: Re: [IMail Forum] Misbehaving Rule!

In rules with multiple conditions (AND, OR) the conditions are handled in
left to right order.  So, your rule is:

exp1 and exp2 or exp3 and exp4 or exp5 and exp6:copy...

This is being evaluated this way:
((((exp1 and exp2) or exp3) and exp4) or exp5) and exp6

For this rule to be true, the header must contain x-imail-spam-valfrom.

You can't use the parenthesis in the rule like I did above, that was just to
show how it's evaluating.

Tripp

----- Original Message ----- 
From: "Guy Deslauriers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 23, 2004 5:45 PM
Subject: [IMail Forum] Misbehaving Rule!


> Hi,
>
> I have the following rule behaving quite strangely
>
>
H~X-IMAIL-SPAM-VALHELO!AND!H~X-IMAIL-SPAM-VALREVDNS!OR!H~X-IMAIL-SPAM-VALHEL
>
O!AND!H~X-IMAIL-SPAM-VALFROM!OR!H~X-IMAIL-SPAM-VALREVDNS!AND!H~X-IMAIL-SPAM-
> VALFROM:[EMAIL PROTECTED]
>
> I run the test on the rule and get the following results:
>
> X-IMAIL-SPAM-VALHELO and X-IMAIL-SPAM-VALREVDNS = FALSE
> X-IMAIL-SPAM-VALHELO and X-IMAIL-SPAM-VALFROM = TRUE
> X-IMAIL-SPAM-VALREVDNS and X-IMAIL-SPAM-VALFROM = TRUE
>
> I tried it like that too with the same results
>
>
H~X-IMAIL-SPAM-VALHELO!AND!H~(X-IMAIL-SPAM-VALREVDNS|X-IMAIL-SPAM-VALFROM)!O
> R!H~X-IMAIL-SPAM-VALREVDNS!AND!H~X-IMAIL-SPAM-VALFROM:!COPY!
> [EMAIL PROTECTED]
>
> And of course when I use the following rule it behaves as expected
>
>
H~X-IMAIL-SPAM-VALHELO!AND!H~X-IMAIL-SPAM-VALREVDNS:[EMAIL PROTECTED]
>
> Could some bright mind enlighten me or slap me good 'cause I screwed up
> somewhere???
>
> Thanks in advance
>
> gd
>
>
>
>
>
>
> To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
> List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
> Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
>


To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/



To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

Reply via email to