alecpl
2010-03-31 6f31b356b2b21882b439324d233aceec413f4737
program/include/rcube_imap.php
@@ -135,6 +135,8 @@
                $this->set_rootdir($this->conn->rootdir);
            if (empty($this->delimiter))
               $this->get_hierarchy_delimiter();
            return true;
        }
        // write error log
        else if ($this->conn->error) {
@@ -144,7 +146,7 @@
                'message' => $this->conn->error), true, false);
        }
        return $this->conn ? true : false;
        return false;
    }
@@ -1412,6 +1414,27 @@
        return $a_messages;
    }
    
    /**
     * Direct (real and simple) SEARCH request to IMAP server,
     * without result sorting and caching
     *
     * @param  string  Mailbox name to search in
     * @param  string  Search string
     * @param  boolean True if UIDs should be returned
     * @return array   Search results as list of message IDs or UIDs
     * @access public
     */
    function search_once($mbox_name='', $str=NULL, $ret_uid=false)
    {
        if (!$str)
            return false;
        $mailbox = $mbox_name ? $this->mod_mailbox($mbox_name) : $this->mailbox;
        return $this->conn->search($mailbox, $str, $ret_uid);
    }
  
    /**
     * Sort thread