aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-15 13:53:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-15 13:53:46 +0100
commitaf9b355e0a153f017e8e5dee56aa2ac83b0abb6d (patch)
treee4e83334ffaf4d1935d0759105b6f3172595410b /src/plugins
parent6541d1c6925d3cda8b2f1751445b409fde28c768 (diff)
downloadrspamd-af9b355e0a153f017e8e5dee56aa2ac83b0abb6d.tar.gz
rspamd-af9b355e0a153f017e8e5dee56aa2ac83b0abb6d.zip
[Minor] Add some more scores
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/whitelist.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/lua/whitelist.lua b/src/plugins/lua/whitelist.lua
index 6bd819e88..ab04577b0 100644
--- a/src/plugins/lua/whitelist.lua
+++ b/src/plugins/lua/whitelist.lua
@@ -397,14 +397,16 @@ local configure_whitelist_module = function()
local id = rspamd_config:register_symbol({
name = symbol,
flags = flags,
- callback = gen_whitelist_cb(symbol, rule)
+ callback = gen_whitelist_cb(symbol, rule),
+ score = rule.score or 0,
})
if rule.inverse_symbol then
rspamd_config:register_symbol({
name = rule.inverse_symbol,
type = 'virtual',
- parent = id
+ parent = id,
+ score = rule.score and -(rule.score) or 0,
})
end