From 51e2a8c05682c0bbbfb940681bf12b93b4719f7f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 31 Mar 2018 17:48:50 +0100 Subject: [Fix] Fix usage of util.parse_mail_address --- rules/regexp/compromised_hosts.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rules/regexp') diff --git a/rules/regexp/compromised_hosts.lua b/rules/regexp/compromised_hosts.lua index 67101a80d..46a192978 100644 --- a/rules/regexp/compromised_hosts.lua +++ b/rules/regexp/compromised_hosts.lua @@ -177,7 +177,7 @@ rspamd_config.FROM_SERVICE_ACCT = { -- Sender local sender = task:get_header('Sender') if sender then - local s = util.parse_mail_address(sender) + local s = util.parse_mail_address(sender, task:get_mempool()) if (s and s[1]) then if (re:match(s[1].addr)) then return true end end @@ -185,7 +185,7 @@ rspamd_config.FROM_SERVICE_ACCT = { -- Reply-To local replyto = task:get_header('Reply-To') if replyto then - local rt = util.parse_mail_address(replyto) + local rt = util.parse_mail_address(replyto, task:get_mempool()) if (rt and rt[1]) then if (re:match(rt[1].addr)) then return true end end -- cgit v1.2.3