Hi,

having the regex into a variable would help maintenance. Something like:

$BankList = "Bank1|Bank2|Bank3|Bank4"

uri       BANKURI      /$BankList/i
score   BANKURI    0.2

body   BANKBODY     /$BankList/i
score   BANKBODY    0.1

is there any way to do this?

You might try something like this:

body    __BANK1 /Bank1/
body    __BANK2 /Bank2/
body    __BANK3 /Bank3/
meta    BANKBODY        (__BANK1 || __BANK2 || __BANK3 >= 1)
score   BANKBODY        0.1

uri     __BANKURI1      /bank1\.com/
uri     __BANKURI2      /bank2\.com/
uri     __BANKURI3      /bank3\.com/
meta    BANKURI         (__BANKURI1 || __BANKURI2 || __BANKURI3 >= 1)
score   BANKURI         0.1

If you'd like to be able to use variables, like $BankList, I would create a script that writes out the spamassassin cf file to the spamassassin rule directory.

Regards,
Dave

Reply via email to