]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Avoid callback symbol to be treated as normal
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 30 Sep 2020 14:49:55 +0000 (15:49 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 30 Sep 2020 14:49:55 +0000 (15:49 +0100)
src/plugins/lua/reputation.lua

index 86fd207679c339b7c37d4388f5f23fd24c39415a..aa3215b573d4da939e964de0f622eb0c60dbfef8 100644 (file)
@@ -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),
   }