commit b4fc5ed: [Minor] Attach ical urls to the mime part

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Jul 1 12:28:06 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-07-01 13:24:01 +0100
URL: https://github.com/rspamd/rspamd/commit/b4fc5edd3710c2a8b896497f29077c55f558d318 (HEAD -> master)

[Minor] Attach ical urls to the mime part

---
 lualib/lua_content/ical.lua | 4 ++--
 1 file 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"',


More information about the Commits mailing list