aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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