Просмотр исходного кода

[Rules] Fix CTYPE_MIXED_BOGUS for text attachments

Issue: #3748
tags/3.0
Vsevolod Stakhov 3 лет назад
Родитель
Сommit
e40213cb54
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      rules/headers_checks.lua

+ 1
- 1
rules/headers_checks.lua Просмотреть файл

@@ -1001,7 +1001,7 @@ rspamd_config.CTYPE_MIXED_BOGUS = {
for _,p in ipairs(parts) do
local mtype,_ = p:get_type()
if mtype then
if mtype == 'text' then
if mtype == 'text' and not p:is_attachment() then
ntext_parts = ntext_parts + 1
if ntext_parts > 2 then
found = true

Загрузка…
Отмена
Сохранить