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.
12 lines
271 B
12 lines
271 B
rspamd_config.TEST_FNAME = {
|
|
callback = function(task)
|
|
local r = task:get_parts()
|
|
local fnames = {}
|
|
for _,rh in ipairs(r) do
|
|
if rh:get_filename() then
|
|
table.insert(fnames, rh:get_filename())
|
|
end
|
|
end
|
|
return true,1.0,fnames
|
|
end
|
|
}
|