You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

regex_test.lua 247B

123456789101112
  1. local function get_urls(task)
  2. local urls = task:get_urls()
  3. for _, u in ipairs(urls) do
  4. task:insert_result('FOUND_URL', 1.0, tostring(u))
  5. end
  6. end
  7. rspamd_config:register_symbol({
  8. name = 'SIMPLE',
  9. score = 1.0,
  10. callback = get_urls
  11. })