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.
11 lines
290 B
11 lines
290 B
rspamd_config.SINGLE_SHORT_PART = {
|
|
callback = function(task)
|
|
local parts = task:get_parts()
|
|
if #parts ~= 1 then return end
|
|
local text = parts[1]:get_text()
|
|
if not text then return end
|
|
if text:get_length() >= 64 then return end
|
|
return true
|
|
end,
|
|
score = 0.0,
|
|
}
|