summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-05-18 13:29:39 +0200
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-20 12:21:28 +0100
commitf6bf5f4c22aa3fc1855997ea696fc7e90645d4d4 (patch)
tree7994d801342cc97c58210a8adac9c02256cfe19d /rules
parent5648d0506d42a114ba29b18a89e41f86ad56de36 (diff)
downloadrspamd-f6bf5f4c22aa3fc1855997ea696fc7e90645d4d4.tar.gz
rspamd-f6bf5f4c22aa3fc1855997ea696fc7e90645d4d4.zip
[Minor] Relax CTYPE_MISSING_DISPOSITION rule
Diffstat (limited to 'rules')
-rw-r--r--rules/headers_checks.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/rules/headers_checks.lua b/rules/headers_checks.lua
index cc28cab0b..585c97b0b 100644
--- a/rules/headers_checks.lua
+++ b/rules/headers_checks.lua
@@ -896,6 +896,8 @@ rspamd_config.CTYPE_MISSING_DISPOSITION = {
if (ct and ct:lower():match('^application/octet%-stream') ~= nil) then
local cd = p:get_header('Content-Disposition')
if (not cd) or (cd and cd:lower():find('^attachment') == nil) then
+ local ci = p:get_header('Content-ID')
+ if ci then return false end
return true
end
end
@@ -958,4 +960,4 @@ rspamd_config.INVALID_RCPT_8BIT = {
description = 'Invalid 8bit character in recipients headers',
score = 6.0,
group = 'headers'
-} \ No newline at end of file
+}