summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/spamassassin.lua
diff options
context:
space:
mode:
authorJan Smutny <js@excello.cz>2020-04-17 13:50:50 +0200
committerJan Smutny <js@excello.cz>2020-04-17 14:32:55 +0200
commit3e85c63f09661ab1df51a17ffffffbc4ffa6e2d1 (patch)
treeba682bd945dde42a96f88fff347490aae07baa69 /src/plugins/lua/spamassassin.lua
parentb45a93a58a9467d85a385ab3ed9f57f8880dd2ee (diff)
downloadrspamd-3e85c63f09661ab1df51a17ffffffbc4ffa6e2d1.tar.gz
rspamd-3e85c63f09661ab1df51a17ffffffbc4ffa6e2d1.zip
[Rework] get rid of util:parse_addr duplicating the util:parse_mail_address, replace where used
Diffstat (limited to 'src/plugins/lua/spamassassin.lua')
-rw-r--r--src/plugins/lua/spamassassin.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/spamassassin.lua b/src/plugins/lua/spamassassin.lua
index 2ba0b6228..798578856 100644
--- a/src/plugins/lua/spamassassin.lua
+++ b/src/plugins/lua/spamassassin.lua
@@ -232,7 +232,7 @@ local function handle_header_def(hline, cur_rule)
fun.each(function(func)
if func == 'addr' then
cur_param['function'] = function(str)
- local addr_parsed = util.parse_addr(str)
+ local addr_parsed = util.parse_mail_address(str)
local ret = {}
if addr_parsed then
for _,elt in ipairs(addr_parsed) do
@@ -246,7 +246,7 @@ local function handle_header_def(hline, cur_rule)
end
elseif func == 'name' then
cur_param['function'] = function(str)
- local addr_parsed = util.parse_addr(str)
+ local addr_parsed = util.parse_mail_address(str)
local ret = {}
if addr_parsed then
for _,elt in ipairs(addr_parsed) do