瀏覽代碼

[Minor] Do not punish OpenPGP/MIME attachments

Fixes #1655
tags/1.6.0
Julien Schmidt 7 年之前
父節點
當前提交
df802d3790
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. 4
    1
      rules/headers_checks.lua

+ 4
- 1
rules/headers_checks.lua 查看文件

@@ -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

Loading…
取消
儲存