From: Vsevolod Stakhov Date: Wed, 30 Sep 2020 14:49:55 +0000 (+0100) Subject: [Minor] Avoid callback symbol to be treated as normal X-Git-Tag: 2.6~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=936e1003745892c1491754918243d69e08aa1594;p=thirdparty%2Frspamd.git [Minor] Avoid callback symbol to be treated as normal --- diff --git a/src/plugins/lua/reputation.lua b/src/plugins/lua/reputation.lua index 86fd207679..aa3215b573 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), }