IMP_Mailbox_List::rebuild PHP Method

rebuild() public method

Rebuilds/resets the mailbox list.
public rebuild ( boolean $reset = false )
$reset boolean If true, resets the list instead of rebuilding.
    public function rebuild($reset = false)
    {
        $this->_cacheid = $this->_sorted = null;
        if ($reset) {
            $this->_buidmax = 0;
            $this->_buids = array();
            $this->changed = true;
        } else {
            $this->_buildMailbox();
        }
    }