]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Do not call multimap addr for parts of addr if filter is presented
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 31 Mar 2018 17:35:45 +0000 (18:35 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 31 Mar 2018 17:35:45 +0000 (18:35 +0100)
src/plugins/lua/multimap.lua

index c89436dd1360d83fa53d4dacfeba3f553a7c578e..9d8ff54fdc2f2ef77f44c0e9af8fbd66e2a98811 100644 (file)
@@ -568,8 +568,11 @@ local function multimap_callback(task, rule)
 
   local function match_addr(r, addr)
     match_list(r, addr, {'addr'})
-    match_list(r, addr, {'domain'})
-    match_list(r, addr, {'user'})
+
+    if not r.filter then
+      match_list(r, addr, {'domain'})
+      match_list(r, addr, {'user'})
+    end
   end
 
   local function match_url(r, url)