blob: 01f0e226a08b67cbd19eaefc62a058aef59f6f29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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
})
|