]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Relax CTYPE_MISSING_DISPOSITION rule
authorAndrew Lewis <nerf@judo.za.org>
Thu, 18 May 2017 11:29:39 +0000 (13:29 +0200)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 20 May 2017 11:21:28 +0000 (12:21 +0100)
rules/headers_checks.lua

index cc28cab0b5434d9b670812b5887271b86fb218aa..585c97b0b2c61eeb96856a0808300a9620f4773f 100644 (file)
@@ -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
+}