alecpl
2012-04-23 91cb9dfe789871f9f0e9080752e21b7d4aaef94d
- Fix parsing ESEARCH (ALL) result and enabling ESEARCH for ordinary searches


2 files modified
6 ■■■■■ changed files
program/include/rcube_imap_generic.php 2 ●●● patch | view | raw | blame | history
program/include/rcube_result_index.php 4 ●●● patch | view | raw | blame | history
program/include/rcube_imap_generic.php
@@ -1611,7 +1611,7 @@
        // 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');
        }
program/include/rcube_result_index.php
@@ -100,7 +100,7 @@
// @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']));
                    }
                }
@@ -111,6 +111,8 @@
            unset($data[$i]);
        }
        $data = array_filter($data);
        if (empty($data)) {
            return;
        }