]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Multimap: Fixes for email filters
authorAndrew Lewis <nerf@judo.za.org>
Fri, 10 Feb 2017 13:50:47 +0000 (15:50 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Fri, 10 Feb 2017 13:50:47 +0000 (15:50 +0200)
src/plugins/lua/multimap.lua

index 519c64b22c7022ebef028f42fb0a998ea13ee6ce..bdd9d306961e342ffccfbdddfd18fc464420f737 100644 (file)
@@ -333,7 +333,7 @@ end
 
 local multimap_filters = {
   from = apply_addr_filter,
-  to = apply_addr_filter,
+  rcpt = apply_addr_filter,
   helo = apply_hostname_filter,
   header = apply_addr_filter,
   url = apply_url_filter,
@@ -519,8 +519,8 @@ local function multimap_callback(task, rule)
 
   local function match_addr(r, addr)
     match_list(r, addr, {'addr'})
-    match_list(r, addr, {'domain', function(d) return '@' .. d end})
-    match_list(r, addr, {'user', function(d) return d .. '@' end})
+    match_list(r, addr, {'domain'})
+    match_list(r, addr, {'user'})
   end
 
   local function match_url(r, url)