mirror of https://github.com/rspamd/rspamd.git
Rapid spam filtering system
https://rspamd.com/
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.
14 lines
311 B
14 lines
311 B
rspamd_config.MAGIC_SYM = {
|
|
callback = function(task)
|
|
local parts = task:get_parts()
|
|
|
|
for i,p in ipairs(parts) do
|
|
local ext = p:get_detected_ext()
|
|
|
|
if ext then
|
|
task:insert_result('MAGIC_SYM_' .. ext:upper() .. '_' .. tostring(i), 1.0)
|
|
end
|
|
end
|
|
end,
|
|
type = 'callback'
|
|
}
|