diff options
Diffstat (limited to 'rules/misc.lua')
-rw-r--r-- | rules/misc.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/rules/misc.lua b/rules/misc.lua index 8cfd71619..de088ae4c 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -168,7 +168,7 @@ rspamd_config.R_SUSPICIOUS_URL = { end return false end, - score = 6.0, + score = 5.0, one_shot = true, description = 'Obfusicated or suspicious URL has been found in a message', group = 'url' @@ -183,6 +183,16 @@ rspamd_config.BROKEN_HEADERS = { description = 'Headers structure is likely broken' } +rspamd_config.BROKEN_CONTENT_TYPE = { + callback = function(task) + return fun.any(function(p) return p:is_broken() end, + task:get_parts()) + end, + score = 3.0, + group = 'header', + description = 'Message has part with broken content type' +} + rspamd_config.HEADER_RCONFIRM_MISMATCH = { callback = function (task) local header_from = nil |