aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-09 13:33:47 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-09 13:33:47 +0000
commitc01f7bf658d8412d8885275a30abea0b6ea3909f (patch)
tree6f6de9685461c13b8e24511043394bb05e7b0097 /rules
parentf24563e2c46db27007964099d0a5d4a5a99e58e3 (diff)
downloadrspamd-c01f7bf658d8412d8885275a30abea0b6ea3909f.tar.gz
rspamd-c01f7bf658d8412d8885275a30abea0b6ea3909f.zip
[Minor] Be more strict about bad mime structure
Diffstat (limited to 'rules')
-rw-r--r--rules/misc.lua11
1 files changed, 3 insertions, 8 deletions
diff --git a/rules/misc.lua b/rules/misc.lua
index f3a2ab7d9..6a1eec4fc 100644
--- a/rules/misc.lua
+++ b/rules/misc.lua
@@ -174,13 +174,9 @@ rspamd_config.R_SUSPICIOUS_URL = {
rspamd_config.BROKEN_HEADERS = {
callback = function(task)
- if task:has_flag('broken_headers') then
- return true
- end
-
- return false
+ return task:has_flag('broken_headers')
end,
- score = 1.0,
+ score = 10.0,
group = 'header',
description = 'Headers structure is likely broken'
}
@@ -760,5 +756,4 @@ local freemail_reply_neq_from_id = rspamd_config:register_symbol({
score = 3.0
})
rspamd_config:register_dependency(freemail_reply_neq_from_id, 'FREEMAIL_REPLYTO')
-rspamd_config:register_dependency(freemail_reply_neq_from_id, 'FREEMAIL_FROM')
-
+rspamd_config:register_dependency(freemail_reply_neq_from_id, 'FREEMAIL_FROM') \ No newline at end of file