roundcubemail/program/lib/Roundcube/rcube_imap.php
function threads($folder)
    {
        if ($mcache = $this->get_mcache_engine()) {
            // don't store in self's internal cache, cache has it's own internal cache
            return $mcache->get_thread($folder);
        }

        if (!empty($this->icache['threads'])) {
            if ($this->icache['threads']->get_parameters('MAILBOX') == $folder) {
                return $this->icache['threads'];
            }
        }

        // get all threads
        $result = $this->threads_direct($folder);

        // add to internal (fast) cache
        return $this->icache['threads'] = $result;
    }
function threads($folder)
    {
        if ($mcache = $this->get_mcache_engine()) {
            // don't store in self's internal cache, cache has it's own internal cache
            return $mcache->get_thread($folder);
        }

        if (!empty($this->icache['threads'])) {
            if ($this->icache['threads']->get_parameters('MAILBOX') == $folder) {
                return $this->icache['threads'];
            }
        }

        // get all threads
        $result = $this->threads_direct($folder);

        // add to internal (fast) cache
        return $this->icache['threads'] = $result;
    }
function threads ( $ folder ) { if ( $ mcache = $ this -> get_mcache_engine ( ) ) { // don't store in self's internal cache, cache has it's own internal cache return $ mcache -> get_thread ( $ folder ) ; } if ( ! empty ( $ this -> icache [ 'threads' ] ) ) { if ( $ this -> icache [ 'threads' ] -> get_parameters ( 'MAILBOX' ) == $ folder ) { return $ this -> icache [ 'threads' ] ; } } // get all threads $ result = $ this -> threads_direct ( $ folder ) ; // add to internal (fast) cache return $ this -> icache [ 'threads' ] = $ result ; }
Method for fetching threads data

@param string $folder Folder name

@return rcube_imap_thread Thread data object
Method for fetching threads data