- Fix parsing ESEARCH (ALL) result and enabling ESEARCH for ordinary searches
| | |
| | | |
| | | // If ESEARCH is supported always use ALL |
| | | // but not when items are specified or using simple id2uid search |
| | | if (empty($items) && ((int) $criteria != $criteria)) { |
| | | if (empty($items) && preg_match('/[^0-9]/', $criteria)) { |
| | | $items = array('ALL'); |
| | | } |
| | | |
| | |
| | | // @TODO: Implement compression using compressMessageSet() in __sleep() and __wakeup() ? |
| | | // @TODO: work with compressed result?! |
| | | if (isset($this->params['ALL'])) { |
| | | $data[$idx] = implode(self::SEPARATOR_ELEMENT, |
| | | $data_item = implode(self::SEPARATOR_ELEMENT, |
| | | rcube_imap_generic::uncompressMessageSet($this->params['ALL'])); |
| | | } |
| | | } |
| | |
| | | unset($data[$i]); |
| | | } |
| | | |
| | | $data = array_filter($data); |
| | | |
| | | if (empty($data)) { |
| | | return; |
| | | } |