From 8eb583b499bc21ba095482372f0b5d9e3dc00626 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 21 Jul 2024 13:54:56 +0200 Subject: [PATCH] Fix bug where "with attachment" filter could fail on some fts engines (#9514) --- CHANGELOG.md | 1 + program/actions/mail/index.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 027fa49e142..3174ed1a23d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Fix decoding mail parts with multiple base64-encoded text blocks (#9290) - Fix bug where some messages could get malformed in an import from a MBOX file (#9510) - Fix invalid line break characters in multi-line text in Sieve scripts (#9543) +- Fix bug where "with attachment" filter could fail on some fts engines (#9514) ## Release 1.6.7 diff --git a/program/actions/mail/index.php b/program/actions/mail/index.php index e07535964cc..90afc2da51d 100644 --- a/program/actions/mail/index.php +++ b/program/actions/mail/index.php @@ -1568,7 +1568,7 @@ public static function search_filter($attrib) // Content-Type values of messages with attachments // the same as in app.js:add_message_row() - $ctypes = ['application/', 'multipart/m', 'multipart/signed', 'multipart/report']; + $ctypes = ['application/', 'multipart/mixed', 'multipart/signed', 'multipart/report']; // Build search string of "with attachment" filter $attachment = trim(str_repeat(' OR', count($ctypes)-1));