You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "R.Smits" <R....@tudelft.nl> on 2009/01/26 11:46:09 UTC

Help with meta rule

Hello,

I have searched the archives, but not found a clear answer to this...
maybe someone can give me a hint.

I have a few strings that i want to use with a meta rule.

example :
-----------
body __WORD_01 /string1/
body __WORD_02 /string2/
body __WORD_03 /string3/

body __WORD_04 /string4/i
body __WORD_05 /string5/i
body __WORD_06 /string6/i
body __WORD_07 /string7/i
body __WORD_08 /string8/i

body __WORD_10 /string10/i
body __WORD_11 /string11/i

WORD_01 + WORD_02 + WORD_03 has to be present.

Then ONE of the following string 4 t/m 08.
Then ONE of the following string 10 t/m 11.

Now I have .....

meta WORD_EN (__WORD_01 && __WORD_02 && __WORD_03 && __WORD_04 && __WORD_10)
score WORD_EN 10

meta WORD_NL (__WORD_01 && __WORD_02 && __WORD_03 && __WORD_04 && __WORD_11)
score WORD_NL 10

meta WORD_EN1 (__WORD_01 && __WORD_02 && __WORD_03 && __WORD_05 &&
__WORD_10)
score WORD_EN1 10

etc etc ...... (lots of combinations possible)

Can this also been done with a "||" instead a "&&" ?

Like this :

meta WORD_EN (__WORD_01 && __WORD_02 && __WORD_03 && __WORD_04 ||
__WORD_05 || __WORD_06 || __WORD_07 || __WORD_08 &&  __WORD_10 || __WORD_11)
score WORD_EN 10

Thanks for any help...

Greetings .. Richard

Re: Help with meta rule

Posted by "R.Smits" <R....@tudelft.nl>.
Thank you,

It works perfect....

Greetings... Richard

Martin Gregorie wrote:
> On Mon, 2009-01-26 at 11:46 +0100, R.Smits wrote:
>> Hello,
>>
>> I have searched the archives, but not found a clear answer to this...
>> maybe someone can give me a hint.
>>
>> I have a few strings that i want to use with a meta rule.
>>
>> example :
>> -----------
>> body __WORD_01 /string1/
>> body __WORD_02 /string2/
>> body __WORD_03 /string3/
>>
>> body __WORD_04 /string4/i
>> body __WORD_05 /string5/i
>> body __WORD_06 /string6/i
>> body __WORD_07 /string7/i
>> body __WORD_08 /string8/i
>>
>> body __WORD_10 /string10/i
>> body __WORD_11 /string11/i
>>
>> WORD_01 + WORD_02 + WORD_03 has to be present.
>>
>> Then ONE of the following string 4 t/m 08.
>> Then ONE of the following string 10 t/m 11.
>>
>> Now I have .....
>>
> I'd use something like:
> 
> meta __WORD_G1 (__WORD_01 && __WORD_02 && __WORD_03)
> meta __WORD_G2 (__WORD_04 || __WORD_05 || __WORD_06 || __WORD_06|| __WORD_07|| __WORD_09)
> meta __WORD_G3 (__WORD_10 || __WORD_11)
> meta WORD_EN   (__WORD_G1 && __WORD_G2 && __WORD_G3)
> score WORD_EN 10 
> 
> 
> 
> Martin
> 
> 

Re: Help with meta rule

Posted by Martin Gregorie <ma...@gregorie.org>.
On Mon, 2009-01-26 at 11:46 +0100, R.Smits wrote:
> Hello,
> 
> I have searched the archives, but not found a clear answer to this...
> maybe someone can give me a hint.
> 
> I have a few strings that i want to use with a meta rule.
> 
> example :
> -----------
> body __WORD_01 /string1/
> body __WORD_02 /string2/
> body __WORD_03 /string3/
> 
> body __WORD_04 /string4/i
> body __WORD_05 /string5/i
> body __WORD_06 /string6/i
> body __WORD_07 /string7/i
> body __WORD_08 /string8/i
> 
> body __WORD_10 /string10/i
> body __WORD_11 /string11/i
> 
> WORD_01 + WORD_02 + WORD_03 has to be present.
> 
> Then ONE of the following string 4 t/m 08.
> Then ONE of the following string 10 t/m 11.
> 
> Now I have .....
> 
I'd use something like:

meta __WORD_G1 (__WORD_01 && __WORD_02 && __WORD_03)
meta __WORD_G2 (__WORD_04 || __WORD_05 || __WORD_06 || __WORD_06|| __WORD_07|| __WORD_09)
meta __WORD_G3 (__WORD_10 || __WORD_11)
meta WORD_EN   (__WORD_G1 && __WORD_G2 && __WORD_G3)
score WORD_EN 10 



Martin