From: Andrew Lewis Date: Thu, 18 May 2017 11:29:39 +0000 (+0200) Subject: [Minor] Relax CTYPE_MISSING_DISPOSITION rule X-Git-Tag: 1.6.0~185^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1644%2Fhead;p=rspamd.git [Minor] Relax CTYPE_MISSING_DISPOSITION rule --- 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 +}