]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do not punish OpenPGP/MIME attachments 1656/head
authorJulien Schmidt <git@julienschmidt.com>
Mon, 29 May 2017 22:21:33 +0000 (06:21 +0800)
committerJulien Schmidt <git@julienschmidt.com>
Mon, 29 May 2017 22:24:56 +0000 (06:24 +0800)
Fixes #1655

rules/headers_checks.lua

index 585c97b0b2c61eeb96856a0808300a9620f4773f..8ee28e40b015a757c6aed773c18e9c431a72b20e 100644 (file)
@@ -897,7 +897,10 @@ rspamd_config.CTYPE_MISSING_DISPOSITION = {
         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
+          if ci or (#parts > 1 and (cd and cd:find('filename=.+%.asc') ~= nil))
+          then
+            return false
+          end
           return true
         end
       end