You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Dan Patnode <da...@patnode.net> on 2006/05/02 08:33:53 UTC

Meta Operators

Meta's allow  >  operators for  +  sets, such as:

	meta TEST_2 (__TEST_PP + __TEST_QQ + __TEST_RR > 1)


But when stacked into a progressive array:

	meta TEST_2 (__TEST_PP + __TEST_QQ + __TEST_RR > 1)
	meta TEST_3 (__TEST_PP + __TEST_QQ + __TEST_RR > 2)
	meta TEST_4 (__TEST_PP + __TEST_QQ + __TEST_RR > 3)


...smaller hits also hit with larger hits, greater than 3 also  
triggers greater than 2:

	tests=TEST_2,TEST_3,TEST_4


I've tried replacing the  >  with  =

	meta TEST_2 (__TEST_PP + __TEST_QQ + __TEST_RR = 2)
	meta TEST_3 (__TEST_PP + __TEST_QQ + __TEST_RR = 3)
	meta TEST_4 (__TEST_PP + __TEST_QQ + __TEST_RR = 4)


...but all I get are errors:

	[4524] warn: _(Missing operator before  3?)


Is there a way for each array member to equate to a specific number  
of hits?  In the last example, the results would look like:

	tests=TEST_4


Thanks,
Dan


Re: Meta Operators

Posted by Dan <a...@patnode.net>.
>> I've tried replacing the  >  with  =
>>
>> 	meta TEST_2 (__TEST_PP + __TEST_QQ + __TEST_RR = 2)
>> 	meta TEST_3 (__TEST_PP + __TEST_QQ + __TEST_RR = 3)
>> 	meta TEST_4 (__TEST_PP + __TEST_QQ + __TEST_RR = 4)
>>
>> ...but all I get are errors:
>>
>> 	[4524] warn: _(Missing operator before  3?)
>
> Try "==".  "=" sets variables, "==" compares numeric values.

I get it, just like && and ||.  It works!:

tests=TEST_5

Thanks!
Dan

Re: Meta Operators

Posted by Theo Van Dinter <fe...@apache.org>.
On Mon, May 01, 2006 at 11:33:53PM -0700, Dan Patnode wrote:
> I've tried replacing the  >  with  =
> 
> 	meta TEST_2 (__TEST_PP + __TEST_QQ + __TEST_RR = 2)
> 	meta TEST_3 (__TEST_PP + __TEST_QQ + __TEST_RR = 3)
> 	meta TEST_4 (__TEST_PP + __TEST_QQ + __TEST_RR = 4)
> 
> ...but all I get are errors:
> 
> 	[4524] warn: _(Missing operator before  3?)

Try "==".  "=" sets variables, "==" compares numeric values.

-- 
Randomly Generated Tagline:
Dr. Zoidberg: "A successor to the professor?"