From 1d94c2d7c85bf338abf47313ac3ed12e316f061a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 29 Jul 2016 14:04:35 +0100 Subject: [PATCH] [Fix] Fix prefilter mode for multimap --- src/plugins/lua/multimap.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index e6fe56dc9..222cf3f06 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -692,11 +692,12 @@ if opts and type(opts) == 'table' then end end - if any(function(r) return r['prefilter'] end, rules) then + each(function(r) rspamd_config:register_symbol({ type = 'prefilter', - name = rule['symbol'], - callback = gen_multimap_callback(rule), + name = r['symbol'], + callback = gen_multimap_callback(r), }) - end + end, + filter(function(r) return r['prefilter'] end, rules)) end -- 2.39.5