Mailing List Archive

Rules order to save processing time
I have a very heavy regex rules set that only make sense if a very simple regex triggers...
i think it would be a good idea to have some kind of TFLAG, for example:
tflags    depends_on    <rule>
to indicate that a rule must run ONLY if a prevoious one was positive
what do you think??
------------Pedro.
Re: Rules order to save processing time [ In reply to ]
On Wed, Feb 19, 2020 at 08:38:15AM +0000, Pedro David Marco wrote:
> I have a very heavy regex rules set that only make sense if a very simple regex
> triggers...
>
> i think it would be a good idea to have some kind of TFLAG, for example:
>
> tflags depends_on <rule>
>
> to indicate that a rule must run ONLY if a prevoious one was positive
>
> what do you think??

It's good idea, also discussed in this bug:

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=6855

Probably not trivial to implement though, with all internal priority and
meta dependencies stuff going on.