On Fri, 28 Apr 2006 12:44:47 -0400, Brett Patters - Roundcube Forum Admin 
<[EMAIL PROTECTED]> wrote:
> Martin Marques wrote:
>> I'm having a real hard time making RC sort my messages by arrival
> instead of date. I tried putting:
>>
>> $rcmail_config['message_sort_col'] = 'internaldate';
>>
>> and even
>>
>> $rcmail_config['message_sort_col'] = 'arrival';
>>
>> I even tried to put it in upper case, but still with no luck. Any ideas?
>>
>> P.D.: I'm on the latest CVS.
>
> arrival isn't a column that it can be sorted by.... I don't know the RC
> internals like a dev would, but I can say that the message_sort_col is
> how it's sorted I think after the query for the messages, not before.
> So it's sorting the message array, not the messages on the server.

Well, I'm still checking the code out, but I found methods like this one in 
program/lib/imap.inc: 
iil_C_Sort(&$conn, $mailbox, $field, $add='')

$field looks like the sort field to use.

After that it sends this commando to the IMAP server:

        $command = 's SORT ('.$field.') US-ASCII ALL '."$add\r\n";

Aparently something is wrong, but I'm still looking at the code.

-- 
---------------------------------------------------------
Lic. Martín Marqués         |   SELECT 'mmarques' || 
Centro de Telemática        |       '@' || 'unl.edu.ar';
Universidad Nacional        |   DBA, Programador, 
    del Litoral             |   Administrador
---------------------------------------------------------




Reply via email to