roundcubemail/program/lib/Roundcube/rcube_imap.php
public function list_messages($folder='', $page=NULL, $sort_field=NULL, $sort_order=NULL, $slice=0)
    {
        if (!strlen($folder)) {
            $folder = $this->folder;
        }

        return $this->_list_messages($folder, $page, $sort_field, $sort_order, $slice);
    }
public function list_messages($folder='', $page=NULL, $sort_field=NULL, $sort_order=NULL, $slice=0)
    {
        if (!strlen($folder)) {
            $folder = $this->folder;
        }

        return $this->_list_messages($folder, $page, $sort_field, $sort_order, $slice);
    }
public function list_messages ( $ folder = '' , $ page = NULL , $ sort_field = NULL , $ sort_order = NULL , $ slice = 0 ) { if ( ! strlen ( $ folder ) ) { $ folder = $ this -> folder ; } return $ this -> _list_messages ( $ folder , $ page , $ sort_field , $ sort_order , $ slice ) ; }
Public method for listing headers

@param   string   $folder     Folder name
@param   int      $page       Current page to list
@param   string   $sort_field Header field to sort by
@param   string   $sort_order Sort order [ASC|DESC]
@param   int      $slice      Number of slice items to extract from result array

@return array Indexed array with message header objects
Public method for listing headers