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

"meta" rule using wildcard to include other rules?

From: Jeff_47 <python_at_nospam>
Date: Fri Dec 30 2011 - 15:25:20 GMT
To: users@spamassassin.apache.org

Hi,
I have a series of local rules customized to catch spam targeted at my (very
small, family-only) user base. I have a series of rules along the lines of:

body __L_LOANS_BODY1 /\bwire money\b/i
body __L_LOANS_BODY2 /\bdeposited today\b/i
body __L_LOANS_BODY3 /\b100 day loans\b/i
body __L_LOANS_BODY4 /\bYour pre\-approved\b/i
etc...

and then a meta rule:
meta L_LOANS_MULTI (__L_LOANS_BODY1 + __L_LOANS_BODY2 +
__L_LOANS_BODY3 ... etc > 4)

Here's my question:
Is there a way to include all the __L_LOANS_BODY* rules using a wildcard in
the meta rule? It is cumbersome when I want to add a new rule to have to go
and add it to the meta rule as well, not to mention making that rule line
very long! (ie, something like __L_LOANS_BODY* > 3)

Put another way, I'd like to be able to add a new __L_LOANS_BODY rule and
have the meta rule automatically incorporate it. Is this possible?
-- View this message in context: http://old.nabble.com/%22meta%22-rule-using-wildcard-to-include-other-rules--tp33055188p33055188.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.