From 2458e1746a40f1a8b031a4a7c15d725d696446b6 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 10 Feb 2017 15:50:47 +0200 Subject: [PATCH] [Fix] Multimap: Fixes for email filters --- src/plugins/lua/multimap.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 519c64b22..bdd9d3069 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -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) -- 2.39.5