diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-29 19:14:26 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-29 19:14:26 +0100 |
commit | 04c99fbc2fe08880e719830579e466e88675e647 (patch) | |
tree | 64f7e02614cd6f575f40b1d5c814089eb0e543fa /src | |
parent | b691da311f5c2fe920ddc268d041fa9999601ba6 (diff) | |
download | rspamd-04c99fbc2fe08880e719830579e466e88675e647.tar.gz rspamd-04c99fbc2fe08880e719830579e466e88675e647.zip |
[Minor] Fix scoring for the blacklist rules
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/whitelist.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/lua/whitelist.lua b/src/plugins/lua/whitelist.lua index c2341110c..f810433c4 100644 --- a/src/plugins/lua/whitelist.lua +++ b/src/plugins/lua/whitelist.lua @@ -45,8 +45,6 @@ local function whitelist_cb(symbol, rule, task) if rule.blacklist then how = 'bl' end local function parse_val(val) - local how = 'wl' - if rule.blacklist then how = 'bl' end if val then if val == '' then return how,1.0 @@ -193,7 +191,9 @@ local function whitelist_cb(symbol, rule, task) sym = rule.inverse_symbol else -- Inverse multiplier - mult = -mult + if not rule.blacklist then + mult = -mult + end end if rule.strict or how == 'bl' or how == 'both' then |