alecpl
2010-10-18 f13baaf67cd67651f3fb5de29d62618d8522a702
- Fix regression in rcube_imap::_threadcount() which was the reason
why mailbox_status() returned always "1" for folders with enabled threading


1 files modified
8 ■■■■ changed files
program/include/rcube_imap.php 8 ●●●● patch | view | raw | blame | history
program/include/rcube_imap.php
@@ -585,11 +585,15 @@
     */
    private function _threadcount($mailbox, &$msg_count)
    {
        if (!empty($this->icache['threads']))
        if (!empty($this->icache['threads'])) {
            $msg_count = count($this->icache['threads']['depth']);
            return count($this->icache['threads']['tree']);
        }
        if (is_array($result = $this->_fetch_threads($mailbox)))
        if (is_array($result = $this->_fetch_threads($mailbox))) {
            $thread_tree = array_shift($result);
            $msg_count = count($result[0]);
        }
//        list ($thread_tree, $msg_depth, $has_children) = $result;
//        $this->update_thread_cache($mailbox, $thread_tree, $msg_depth, $has_children);