From: Vsevolod Stakhov Date: Wed, 19 May 2021 14:12:33 +0000 (+0100) Subject: [Rules] Fix CTYPE_MIXED_BOGUS for text attachments X-Git-Tag: 3.0~387 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e40213cb545daa6e0a7093aba7b777a9eb38f213;p=thirdparty%2Frspamd.git [Rules] Fix CTYPE_MIXED_BOGUS for text attachments Issue: #3748 --- 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