From: Andrew Lewis Date: Fri, 10 Feb 2017 13:50:47 +0000 (+0200) Subject: [Fix] Multimap: Fixes for email filters X-Git-Tag: 1.5.0~138^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2458e1746a40f1a8b031a4a7c15d725d696446b6;p=rspamd.git [Fix] Multimap: Fixes for email filters --- 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)