SA Bugzilla – Bug 5519
[review] Zeroing a score does not disable plugin eval rules
Last modified: 2007-08-07 10:49:15 UTC
I'm copying comment #16 from Bug 5485 as a separate problem report so that it does not get forgotten. It is an independent problem anyway. here it goes (#16): > zero score DK/DKIM_POLICY_SIGNSOME rules Hmmm, is zeroing a score for a rule supposed to disable any such rule? Somehow I get the impression this works for plain, RBL, URI, etc rules, but not for plugin eval rules. I still see hits on DKIM_POLICY_SIGNSOME, BOTNET_IPINHOSTNAME, BOTNET_CLIENT and similar, explicitly reporting 0 points, even though I have their score set to 0. In Check::run_eval_tests() I don't see any checks on score, like there are in other do_*_tests routines. I think this used to work in 3.1.8 as expected.
Created attachment 4056 [details] Patch to make zero score disable plugin eval rules This patch applies both to trunk and to branches/3.2 (with an offset), and restores the functionality of a zero score disabling a plugin eval rule. (Note indenting is a bit odd to keep the patch small!)
should get this in for 3.2.3
looks good to me; applied to trunk: : jm 122...; svn commit -m "bug 5519: zeroing an 'eval' rule's score did not stop it running. fix, thanks to Richard Birkett <richard+spamassassin at musicbox.net>" lib/Mail/SpamAssassin/Plugin/Check.pm Sending lib/Mail/SpamAssassin/Plugin/Check.pm Transmitting file data . Committed revision 560962.
> should get this in for 3.2.3 > looks good to me; applied to trunk: +1 looks good, works fine
+1
in 3.2.x: : jm 450...; svn commit -m "zeroing an 'eval' rule's score did not stop it running. fix, thanks to Richard Birkett <richard+spamassassin at musicbox.net>" lib/Mail/SpamAssassin/Plugin/Check.pm Sending lib/Mail/SpamAssassin/Plugin/Check.pm Transmitting file data . Committed revision 563590.