diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-17 18:59:21 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-17 18:59:21 +0000 |
commit | fb4265765e0a2932c1d43c5167482feee8bc461a (patch) | |
tree | 6acc7af0cb922ddcfbb1b4c8ea6cf18710bd2284 /src/plugins/lua | |
parent | 84c2524e855dd0ccd27724e54e6cf09fb2419d86 (diff) | |
download | rspamd-fb4265765e0a2932c1d43c5167482feee8bc461a.tar.gz rspamd-fb4265765e0a2932c1d43c5167482feee8bc461a.zip |
[Fix] Allow to check negative scores in force_actions
MFH: rspamd-1.6
Diffstat (limited to 'src/plugins/lua')
-rw-r--r-- | src/plugins/lua/force_actions.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua index d8d29b323..a733a1425 100644 --- a/src/plugins/lua/force_actions.lua +++ b/src/plugins/lua/force_actions.lua @@ -44,7 +44,7 @@ local function gen_cb(expr, act, pool, message, subject, raction, honor, limit) local function process_atom(atom, task) local f_ret = task:has_symbol(atom) if f_ret then - f_ret = task:get_symbol(atom)[1].score + f_ret = math.abs(task:get_symbol(atom)[1].score) if f_ret < 0.001 then -- Adjust some low score to distinguish from pure zero f_ret = 0.001 |