From e40213cb545daa6e0a7093aba7b777a9eb38f213 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 19 May 2021 15:12:33 +0100 Subject: [PATCH] [Rules] Fix CTYPE_MIXED_BOGUS for text attachments Issue: #3748 --- rules/headers_checks.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/headers_checks.lua b/rules/headers_checks.lua index 4613a7dd72..9cdd9c57c0 100644 --- a/rules/headers_checks.lua +++ b/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 -- 2.47.3