aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-30 15:49:55 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-30 15:49:55 +0100
commit936e1003745892c1491754918243d69e08aa1594 (patch)
tree3ef802671c07228d0cc33d0b766e7efc0a182ad7
parent32e5b11adfc3550bd4dfe50c3aaa2e96900af102 (diff)
downloadrspamd-936e1003745892c1491754918243d69e08aa1594.tar.gz
rspamd-936e1003745892c1491754918243d69e08aa1594.zip
[Minor] Avoid callback symbol to be treated as normal
-rw-r--r--src/plugins/lua/reputation.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua
index 86fd20767..aa3215b57 100644
--- a/src/plugins/lua/reputation.lua
+++ b/src/plugins/lua/reputation.lua
@@ -1168,9 +1168,14 @@ local function parse_rule(name, tbl)
end)
-- We now generate symbol for checking
+ local rule_type = 'normal'
+ if rule.selector.config.split_symbols then
+ rule_type = 'callback'
+ end
+
local id = rspamd_config:register_symbol{
name = rule.symbol,
- type = 'normal',
+ type = rule_type,
callback = callback_gen(reputation_filter_cb, rule),
}