diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-31 17:48:50 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-31 17:48:50 +0100 |
commit | 51e2a8c05682c0bbbfb940681bf12b93b4719f7f (patch) | |
tree | dc04847adb8be1be153f681344d924c5feb0b551 /rules/regexp | |
parent | 7c09818f4165382cbd65a6a33b655a2def0ffc65 (diff) | |
download | rspamd-51e2a8c05682c0bbbfb940681bf12b93b4719f7f.tar.gz rspamd-51e2a8c05682c0bbbfb940681bf12b93b4719f7f.zip |
[Fix] Fix usage of util.parse_mail_address
Diffstat (limited to 'rules/regexp')
-rw-r--r-- | rules/regexp/compromised_hosts.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |