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: Kevin A. McGrail <KMcGrail_at_nospam>
Date: Fri Dec 30 2011 - 15:47:33 GMT
To: Jeff_47 <python@finity.org>

On 12/30/2011 10:25 AM, Jeff_47 wrote:
> 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?
It's an interesting idea but not really that much of a time saver. I
don't believe it's supported and don't see it being supported to be
honest due to the amount of work with very little gain.

Sorry,
KAM