summaryrefslogtreecommitdiffstats
path: root/rules/headers_checks.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-05-18 13:29:39 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-05-18 13:29:39 +0200
commitf6bb5437eadcdd0c55c7bbb36aa2d0ceec48e60c (patch)
tree87e2a0eeb496da550f4bfa8edf080b31db22f5d9 /rules/headers_checks.lua
parent76159df4b2ee19ea36d5809e8a1a68e58fa12d5f (diff)
downloadrspamd-f6bb5437eadcdd0c55c7bbb36aa2d0ceec48e60c.tar.gz
rspamd-f6bb5437eadcdd0c55c7bbb36aa2d0ceec48e60c.zip
[Minor] Relax CTYPE_MISSING_DISPOSITION rule
Diffstat (limited to 'rules/headers_checks.lua')
-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
+}