https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8287
Bug ID: 8287 Summary: Offset score settings do not work when no score has been explicitly set previously Product: Spamassassin Version: 4.0.1 Hardware: PC OS: Linux Status: NEW Severity: minor Priority: P2 Component: Rules Assignee: dev@spamassassin.apache.org Reporter: kdeu...@vianet.ca Target Milestone: Undefined In preparing a new platform for SA, I found that offset/adjustment scores ("score RULENAME (1)") do not work correctly and give a lint error: warn: config: invalid 'score' value in /etc/smtp-spamd/smtmp.cf (line 266): score MANY_SPAN_IN_TEXT (0.5) when no score has been explicitly set sometime earlier in the rule loading. This triggered both on a custom rule from a local ruleset, which happened to have been originally defined as a T_ rule, and on a stock rule I found to have recently changed from having a RuleQA-assigned score to using the default score of 1. The former was left at the default T_ score of 0.01 in a primary SA instance, but (intended to be) adjusted in a secondary instance handling a different mail flow - otherwise I would have included the different score in the rules channel. I converted it to a regular rule with an explicit 0.01 score while troubleshooting. The latter was MANY_SPAN_IN_TEXT scored "score MANY_SPAN_IN_TEXT 2.299 2.197 2.299 2.197" as of sometime in the past few weeks, but recently reverted to the default 1, with no explicit "score MANY_SPAN_IN_TEXT ..." line in the stock ruleset. This may be related to a lesser issue I came across much longer ago, that these offset score settings are also not valid on their own in a custom rules channel. (for example, I can't put "score MANY_SPAN_IN_TEXT (1)" in my custom channel, as it'll create a lint error when sa-update attempts to install it.) -- You are receiving this mail because: You are the assignee for the bug.