mirror of
https://github.com/rspamd/rspamd.git
synced 2024-09-13 15:45:47 +02:00
13 lines
247 B
Lua
13 lines
247 B
Lua
local function get_urls(task)
|
|
local urls = task:get_urls()
|
|
for _, u in ipairs(urls) do
|
|
task:insert_result('FOUND_URL', 1.0, tostring(u))
|
|
end
|
|
end
|
|
|
|
rspamd_config:register_symbol({
|
|
name = 'SIMPLE',
|
|
score = 1.0,
|
|
callback = get_urls
|
|
})
|