From: Vsevolod Stakhov Date: Tue, 17 May 2022 20:30:55 +0000 (+0100) Subject: [Minor] Reputation: Try to fix `split_symbol` default logic X-Git-Tag: 3.3~237 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b92db870b74f62562746c7e85c925d00d6949025;p=thirdparty%2Frspamd.git [Minor] Reputation: Try to fix `split_symbol` default logic --- diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua index 1dce44fafb..b41f66f512 100644 --- a/src/plugins/lua/reputation.lua +++ b/src/plugins/lua/reputation.lua @@ -77,7 +77,9 @@ local function add_symbol_score(task, rule, mult, params) if mult >= 0 then task:insert_result(rule.symbol .. '_SPAM', mult, params) else - task:insert_result(rule.symbol .. '_HAM', mult, params) + -- We assume that `HAM` symbol has negative score... + -- It is probably good to verify on config stage (TODO) + task:insert_result(rule.symbol .. '_HAM', math.abs(mult), params) end else task:insert_result(rule.symbol, mult, params)