spamassassin-users October 2010 archive
Main Archive Page > Month Archives  > spamassassin-users archives
spamassassin-users: Re: List of urls

Re: List of urls

From: John Hardin <jhardin_at_nospam>
Date: Tue Oct 26 2010 - 17:37:06 GMT
To: users@spamassassin.apache.org

On Tue, 26 Oct 2010, Karsten Bräckelmann wrote:

> On Tue, 2010-10-26 at 10:53 +0200, Raymond Dijkxhoorn wrote:
>> For your question, why dont you regexp it?
>>
>> uri url_1 /www.domain(1|2|3|4).com/
>
> The other technique you can use are meta rules
>
> uri __MY_BL_001 /example.(com|net)/
> uri __MY_BL_002 /example.org/
>
> meta MY_BL __MY_BL_001 || __MY_BL_002
> score MY_BL 10.0

The OP wasn't clear whether he wanted ten points _per URI hit_. If that's
the case, the regex alternatives and meta solutions aren't appropriate and
there's no way to avoid one score line per URI rule.

-- John Hardin KA7OHZ http://www.impsec.org/~jhardin/ jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79 ----------------------------------------------------------------------- ...the Fates notice those who buy chainsaws... -- www.darwinawards.com ----------------------------------------------------------------------- 5 days until Halloween