program/include/rcube_imap.php
@@ -687,7 +687,7 @@ // use memory less expensive (and quick) method for big result set $a_index = $this->message_index($mailbox, $this->sort_field, $this->sort_order); // get messages uids for one page... $msgs = array_slice(array_keys($a_index), $start_msg, min($cnt-$start_msg, $this->page_size)); $msgs = array_slice($a_index, $start_msg, min($cnt-$start_msg, $this->page_size)); // ...and fetch headers $this->_fetch_headers($mailbox, join(',', $msgs), $a_msg_headers, NULL);