Lua script to detect URL also in img-Tags
martinschaible opened this issue · 0 comments
martinschaible commented
This might be helpful to deal with URL's:
Filename : /etc/rspamd/rspamd.local.lua
local lua_selectors = require "lua_selectors"
lua_selectors.register_extractor(rspamd_config, "all_urls", {
get_value = function(task, args)
return task:get_urls(true, true), 'userdata_list'
end,
description = 'All URLs',
})
# multimap.conf
type = "selector";
selector = "all_urls;