Fix bug where "With attachment" option in search filter wasn't selected after return from mail view (#1489774)
| | |
| | | - Set In-Reply-To and References for forwarded messages (#1489593) |
| | | - Removed redundant default_folders config option (#1489737) |
| | | - Implemented IMAP SPECIAL-USE extension support [RFC6154] (#1487830) |
| | | - Fix bug where "With attachment" option in search filter wasn't selected after return from mail view (#1489774) |
| | | |
| | | RELEASE 1.0.0 |
| | | ------------- |
| | |
| | | $ctypes = array('application/', 'multipart/m', 'multipart/signed', 'multipart/report'); |
| | | |
| | | // Build search string of "with attachment" filter |
| | | $attachment = str_repeat(' OR', count($ctypes)-1); |
| | | $attachment = trim(str_repeat(' OR', count($ctypes)-1)); |
| | | foreach ($ctypes as $type) { |
| | | $attachment .= ' HEADER Content-Type ' . rcube_imap_generic::escape($type); |
| | | } |