Wrong sorting - please help me debug this

Mark Edwards mark at antsclimbtree.com
Mon Jul 24 11:24:20 CEST 2006

On Jul 24, 2006, at 2:18 AM, Michael Bueker wrote:

> On Fri, 21 Jul 2006 17:49:46 -0400, Jim Pingle <lists at pingle.org>  
> wrote:
>> Interesting. Unfortunately I'm not quire sure how this could be  
>> worked
>> around in RC, given that it relies on the server returning the  
>> right chunk
>> of messages in the right order... If I've read the code right, it  
>> asks the
>> server to give "messages 41 to 80 sorted by date" and the server only
>> returns that set of headers.
>> It's easy for Thunderbird or a traditional client to just download  
>> all the
>> headers and sort them itself, but in a webmail app that could mean  
>> a big
>> cut in speed, especially for large mailboxes.
> You're probably right, but I don't think blaming the IMAPd and  
> looking away isn't the best thing to do. This wrong sorting is MOST  
> annoying, and apparently happens with more than one IMAPd. Maybe  
> someone should talk to the dovecot/Cyrus developers about their  
> interface, but in the meantime, we should think about handling  
> sorting ourselves.

Incidentally, Squirrelmail doesn't have the problem.  Same server,  
same mailbox.  Squirrelmail has server-side sorting enabled.   
Roundcube sorts all out of order, Squirrelmail gets it right.

This is with Cyrus 2.2.

Mark Edwards

More information about the Dev mailing list