Skip to content

Commit

Permalink
Fix bug where "with attachment" filter could fail on some fts engines (
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Jul 21, 2024
1 parent 8f9f1f1 commit 7b68ad1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,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

Expand Down
2 changes: 1 addition & 1 deletion program/actions/mail/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,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));
Expand Down
2 changes: 1 addition & 1 deletion program/actions/mail/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ protected static function search_input_option($option, $value)
if ($value == 'attachment') {
// 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
$result = str_repeat(' OR', count($ctypes) - 1);
Expand Down

0 comments on commit 7b68ad1

Please sign in to comment.