spamassassin-users December 2011 archive
Main Archive Page > Month Archives  > spamassassin-users archives
spamassassin-users: Re: "meta" rule using wildcard to

Re: "meta" rule using wildcard to include other rules?

From: Martin Gregorie <martin_at_nospam>
Date: Fri Dec 30 2011 - 17:06:20 GMT

On Fri, 2011-12-30 at 08:22 -0800, Jeff_47 wrote:
> Thanks, I downloaded this and look at the examples. However, as far as I
> can tell, it only supports rules that work with alternative spam words.
Not entirely true: if you specify "tflags multiple" the rule will fire
for every match and each time it fires the score gets added, so if you
set the score to 0.5 and the message contains 5 phrases that match the
rule, its score will be incremented by 2.5.

Would this meet your requirements?

> What I really want is something that will trigger after seeing an
> accumulation of spammy words.
OK, understood. I typically use portmanteau to build low scoring rules
that are combined by an unchanging meta-rule, e.g. one combines a
portmanteau rule that matches selling phrases with another that matches
product names. If either portmanteau rule fires on ham it adds something
like 0.01 to the score, but if both fire, then the meta rule adds a
rather larger score because the chances are quite strong that the
messages is trying to sell me something.

However, if this isn't what you need, feel free to extend the gawk
program to meet your particular needs: hopefully the portmanteau
approach will suggest ways for you to implement your specific
requirements, not necessarily as an awk/gawk script. As I said, I wrote
portmanteau to match my own needs but I also realise that other people
have different requirements.