diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-22 23:49:00 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-22 23:49:00 +0000 |
commit | 93cad030fda4f15c32494f815790d9f953068352 (patch) | |
tree | a3b09d14c1291aedac380a5218aef1fb71f2328a | |
parent | a741f54edbac05a00c06f2d0d93b2e515fb8afbc (diff) | |
download | rspamd-93cad030fda4f15c32494f815790d9f953068352.tar.gz rspamd-93cad030fda4f15c32494f815790d9f953068352.zip |
[Minor] Improve addr_parse usage in plugins
-rw-r--r-- | src/plugins/lua/multimap.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 9947fb917..5b32343b7 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -177,22 +177,22 @@ end local function apply_addr_filter(task, filter, input, rule) if filter == 'email:addr' or filter == 'email' then - local addr = util.parse_mail_address(input) + local addr = util.parse_mail_address(input, task:get_mempool()) if addr and addr[1] then return addr[1]['addr'] end elseif filter == 'email:user' then - local addr = util.parse_mail_address(input) + local addr = util.parse_mail_address(input, task:get_mempool()) if addr and addr[1] then return addr[1]['user'] end elseif filter == 'email:domain' then - local addr = util.parse_mail_address(input) + local addr = util.parse_mail_address(input, task:get_mempool()) if addr and addr[1] then return addr[1]['domain'] end elseif filter == 'email:name' then - local addr = util.parse_mail_address(input) + local addr = util.parse_mail_address(input, task:get_mempool()) if addr and addr[1] then return addr[1]['name'] end |