[RCD] [PATCH] Theaded view mode

Eric Appelt eric.appelt at primacom.net
Mon Aug 31 12:43:14 CEST 2009


Hi Vladislav and all lurkers,

I have found the Bug !!!!!!!

in rcube_imap.php private function _list_headers


if ($this->sort_field != 'default' &&
	$this->get_capability('sort') && ($msg_index = iil_C_Sort($this->conn, $mailbox, $this->sort_field, $this->skip_deleted ? 'UNDELETED' : '')))
	{
      	// nothing more to do
      	} else {
       	$a_index = iil_C_FetchHeaderIndex($this->conn, $mailbox, "1:*", ($this->sort_field == 'default') ? '' : $this->sort_field, $this->skip_deleted);

      		if (empty($a_index))
      			return array();

      		asort($a_index); // ASC
      		$msg_index = array_keys($a_index);
      }

remove the line asort($a_index); // ASC
after this will works fine.

I think the Problem are the sorting of the new in messagelist pushed messages !!

I have long time testet and debug and now i think thats the solution. 

best Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.roundcube.net/pipermail/dev/attachments/20090831/35d33937/attachment.html>
-------------- next part --------------
_______________________________________________
List info: http://lists.roundcube.net/dev/


More information about the Dev mailing list