aboutsummaryrefslogtreecommitdiffstats
path: root/rules/headers_checks.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-19 15:12:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-19 15:12:33 +0100
commite40213cb545daa6e0a7093aba7b777a9eb38f213 (patch)
treea71f0e2e5b721e1d9fc10e9a05792e5410db4f5f /rules/headers_checks.lua
parent3e684cd1590504ef6509edf75db59a9b7cda219d (diff)
downloadrspamd-e40213cb545daa6e0a7093aba7b777a9eb38f213.tar.gz
rspamd-e40213cb545daa6e0a7093aba7b777a9eb38f213.zip
[Rules] Fix CTYPE_MIXED_BOGUS for text attachments
Issue: #3748
Diffstat (limited to 'rules/headers_checks.lua')
-rw-r--r--rules/headers_checks.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/headers_checks.lua b/rules/headers_checks.lua
index 4613a7dd7..9cdd9c57c 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