浏览代码

Add LONG_SUBJ rule

tags/1.2.0
Alexander Moisseev 8 年前
父节点
当前提交
3d929c5bb3
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14
    0
      rules/misc.lua

+ 14
- 0
rules/misc.lua 查看文件

@@ -124,6 +124,20 @@ rspamd_config.SUBJ_ALL_CAPS = {
description = 'All capital letters in subject'
}

rspamd_config.LONG_SUBJ = {
callback = function(task)
local sbj = task:get_header('Subject')
if sbj and string.len(sbj) > 200 then
return true
end
return false
end,

score = 3.0,
group = 'headers',
description = 'Subject is too long'
}

rspamd_config.BROKEN_HEADERS = {
callback = function(task)
if task:has_flag('broken_headers') then

正在加载...
取消
保存