diff options
author | Jan Smutny <js@excello.cz> | 2020-04-17 13:50:50 +0200 |
---|---|---|
committer | Jan Smutny <js@excello.cz> | 2020-04-17 14:32:55 +0200 |
commit | 3e85c63f09661ab1df51a17ffffffbc4ffa6e2d1 (patch) | |
tree | ba682bd945dde42a96f88fff347490aae07baa69 /src/plugins/lua/spamassassin.lua | |
parent | b45a93a58a9467d85a385ab3ed9f57f8880dd2ee (diff) | |
download | rspamd-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.lua | 4 |
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 |