]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix squeezed groups enabling
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 17 Mar 2018 14:48:26 +0000 (14:48 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 17 Mar 2018 14:48:26 +0000 (14:48 +0000)
lualib/lua_squeeze_rules.lua

index 9401d6fcc07e70f11ba6e3f2de0cfc62632d0204..b2560ddba3a99e5f229f3a1a2d9bfe3852d1bca9 100644 (file)
@@ -246,7 +246,9 @@ exports.squeeze_init = function()
         squeezed_groups[v.group] = {}
       end
 
-      table.insert(squeezed_groups[v.group], v)
+      table.insert(squeezed_groups[v.group], k)
+    else
+      logger.debugm(SN, rspamd_config, 'no metric symbol found for %s, maybe bug', k)
     end
     if not squeezed_rules[v.order] then
       squeezed_rules[v.order] = {}