Hi all,
I have modified the code in the rcube_imap.php and the performance was
good. I post the code modified:

Original:
      $a_index = iil_C_FetchHeaderIndex($this->conn, $mailbox, "1:*",
$this->sort_field, $this->skip_deleted);
    
      if (empty($a_index))
        return array();

      asort($a_index); // ASC
      $msg_index = array_keys($a_index);
      $max = max($msg_index);
      list($begin, $end) = $this->_get_message_range(count($msg_index),
$page);
      $msg_index = array_slice($msg_index, $begin, $end-$begin);

Modified:
      $max = $this->_messagecount($mailbox,'ALL',true);
      list($begin, $end) = $this->_get_message_range($max, $page);
      
      $a_index = iil_C_FetchHeaderIndex($this->conn, $mailbox,
($begin+1).":".$end, $this->sort_field, $this->skip_deleted);
     
      if (empty($a_index))
        return array();

      asort($a_index); // ASC
      $msg_index = array_keys($a_index);
      $msg_index = array_slice($msg_index, 0, $end-$begin);

Can u please check for some errors or issue?

Thanks

On Mon, 07 Sep 2009 13:43:55 +0200, "A.L.E.C" <[email protected]> wrote:
> Sandro Pazzi wrote:
>> Hi Alec,
>> I have reinstalled the 0.2. This work fine for me. Can u please tell me
>> what I must change in 0.3 to have the same performance that 0.2 have
>> (also
>> if this is a bug).
> 
> Sorry, there was too many changes in the code. You should probably look 
> at this patchset 
>
http://trac.roundcube.net/changeset?new=2632%40trunk%2Froundcubemail%2Fprogram%2Finclude%2Frcube_imap.php&old=2625%40trunk%2Froundcubemail%2Fprogram%2Finclude%2Frcube_imap.php

-- 
Sandro Pazzi

IdWeb s.r.l.
Viale Romagna 69/A - 06012 Citta' di Castello (PG)
Tel. 075 851 97 28
Fax 075 851 97 30
_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to