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 /utils/sa_trivial_convert.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 'utils/sa_trivial_convert.lua')
-rw-r--r-- | utils/sa_trivial_convert.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/sa_trivial_convert.lua b/utils/sa_trivial_convert.lua index 4725dabd5..56a01adfa 100644 --- a/utils/sa_trivial_convert.lua +++ b/utils/sa_trivial_convert.lua @@ -52,7 +52,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 @@ -66,7 +66,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 |