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: John Hardin <jhardin_at_nospam>
Date: Fri Dec 30 2011 - 16:34:57 GMT

On Fri, 30 Dec 2011, Jeff_47 wrote:

> 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?

Not within SA, and as Kevin said, I doubt it will ever be added.

If you're doing this regularly I'd suggest writing a small shell script or
perl script to process a definition file to generate the rules. For
example, your source could be a text file having one RE per line, and
the script could read that, generate subrule names, and compose the meta
rule based on how many REs were present.

-- John Hardin KA7OHZ FALaholic #11174 pgpk -a key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79 ----------------------------------------------------------------------- USMC Rules of Gunfighting #6: If you can choose what to bring to a gunfight, bring a long gun and a friend with a long gun. ----------------------------------------------------------------------- 387 days since the first successful private orbital launch (SpaceX)