Changeset 6118 in subversion


Ignore:
Timestamp:
Apr 23, 2012 5:22:15 AM (13 months ago)
Author:
alec
Message:
  • Fix parsing ESEARCH (ALL) result and enabling ESEARCH for ordinary searches
Location:
trunk/roundcubemail/program/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_imap_generic.php

    r6091 r6118  
    16121612        // If ESEARCH is supported always use ALL 
    16131613        // but not when items are specified or using simple id2uid search 
    1614         if (empty($items) && ((int) $criteria != $criteria)) { 
     1614        if (empty($items) && preg_match('/[^0-9]/', $criteria)) { 
    16151615            $items = array('ALL'); 
    16161616        } 
  • trunk/roundcubemail/program/include/rcube_result_index.php

    r6116 r6118  
    101101// @TODO: work with compressed result?! 
    102102                    if (isset($this->params['ALL'])) { 
    103                         $data[$idx] = implode(self::SEPARATOR_ELEMENT, 
     103                        $data_item = implode(self::SEPARATOR_ELEMENT, 
    104104                            rcube_imap_generic::uncompressMessageSet($this->params['ALL'])); 
    105105                    } 
     
    111111            unset($data[$i]); 
    112112        } 
     113 
     114        $data = array_filter($data); 
    113115 
    114116        if (empty($data)) { 
Note: See TracChangeset for help on using the changeset viewer.