From: Vsevolod Stakhov Date: Wed, 1 Jul 2020 12:24:01 +0000 (+0100) Subject: [Minor] Attach ical urls to the mime part X-Git-Tag: 2.6~275 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b4fc5edd3710c2a8b896497f29077c55f558d318;p=rspamd.git [Minor] Attach ical urls to the mime part --- 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"',