diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-01 13:24:01 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-01 13:24:01 +0100 |
commit | b4fc5edd3710c2a8b896497f29077c55f558d318 (patch) | |
tree | d1a72cdfdeed711e989a9599041039f55c369150 | |
parent | 8f8d62fc0dd10f50a340386f324b31b20f84796b (diff) | |
download | rspamd-b4fc5edd3710c2a8b896497f29077c55f558d318.tar.gz rspamd-b4fc5edd3710c2a8b896497f29077c55f558d318.zip |
[Minor] Attach ical urls to the mime part
-rw-r--r-- | lualib/lua_content/ical.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_content/ical.lua b/lualib/lua_content/ical.lua index ed9a87cc5..d5a49de2b 100644 --- a/lualib/lua_content/ical.lua +++ b/lualib/lua_content/ical.lua @@ -42,7 +42,7 @@ local function extract_text_data(specific) return table.concat(tbl, '\n') end -local function process_ical(input, _, task) +local function process_ical(input, mpart, task) local control={n='\n', r=''} local rspamd_url = require "rspamd_url" local escaper = l.Ct((gen_grammar() / function(key, value) @@ -54,7 +54,7 @@ local function process_ical(input, _, task) for _,u in ipairs(local_urls) do lua_util.debugm(N, task, 'ical: found URL in ical %s', tostring(u)) - task:inject_url(u) + task:inject_url(u, mpart) end end lua_util.debugm(N, task, 'ical: ical key %s = "%s"', |