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.

magic.lua 311B

1234567891011121314
  1. rspamd_config.MAGIC_SYM = {
  2. callback = function(task)
  3. local parts = task:get_parts()
  4. for i,p in ipairs(parts) do
  5. local ext = p:get_detected_ext()
  6. if ext then
  7. task:insert_result('MAGIC_SYM_' .. ext:upper() .. '_' .. tostring(i), 1.0)
  8. end
  9. end
  10. end,
  11. type = 'callback'
  12. }