On Thu, Jan 16, 2020 at 03:03:40PM +0000, RW wrote: > > > It would seem more productive to actually make spamassassin --lint > > output info messages (not errors) when rules are redefined. And > > perhaps add a new tflag "redefine" (suggestions?) to suppress those > > warnings for intentional redefines. > > That requires actual coding, and it only partially works. > > Let's say I have local rules: > > body __FOO ... > meta FOO __FOO ... > score FOO 0.001 > > and then in the middle of the night sa-learn downloads new rules: > > header __FOO ... > meta BAR __FOO ... > score BAR 3.0 > > My high-FP informational version of __FOO then gets used in place of > the core version in a high scoring meta rule.
And --lint would say Notice: rule __FOO redefined, check what's going on or use tflags redefine I'm not sure what you mean by "partially" working? It's something that user needs to look into. We can't fail lint because of that. And there are always 95% of users that don't read documentation or any announces, no matter how much we suggest that use __L or whatever in your rules.
