commit af9b355: [Minor] Add some more scores
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Jun 15 12:56:13 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-06-15 13:53:46 +0100
URL: https://github.com/rspamd/rspamd/commit/af9b355e0a153f017e8e5dee56aa2ac83b0abb6d
[Minor] Add some more scores
---
src/plugins/lua/whitelist.lua | 6 ++++--
1 file 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
More information about the Commits
mailing list