> > https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6558
> > Attached is a patch to BodyRuleBaseExtractor.pm which will
> > make sa-compile report a warning when hitting a rule with
> > tflag=multiple and a lossy match. Appropriate for Jenkins runs.

John Hardin wrote:
> Would this be run automatically as part of a make or make test? Or would
> a separate explicit sa-compile step be needed to run this lint check?

Don't know, sorry. I just added a minimalistic test to where it
would fit with least disruption. Remains to be investigated,
most likely Jenkins setup would need to be adjusted.

> It'd be nice if I could see these warnings in the make+make test+masscheck
> I (try to) do before commits...

I agree.

Currently what is necessary is to ditch a sa-compile.cache
directory, e.g.

  rm -rf /root/.spamassassin/sa-compile.cache

before a sa-compile, otherwise results are fetched from
previous runs and rules with their regexps are not
re-assessed - no warnings would be issued for rules
cached from previous runs.

  Mark

Reply via email to