Thanks!
The cache was exactly where I intended to go with this, thanks for info which will allow me to go down that road.
Question though..
I assume messages are being displayed in RC as the headers are pulled, can't I just display everything from the cache instead of as it comes in? I could throw a "Headers Loading, Please Wait" or "Messages Sorting, Please Wait" message instead of showing mail, then show only messages from the cache.
I am not entirely sure this would work and I am not entirely sure I am talented enough to do it but I will give it a whack..
-Todd
----- Original Message ----- From: "Thomas Bruederli" roundcube@gmail.com To: "RoundCube Dev" dev@lists.roundcube.net Sent: Wednesday, February 15, 2006 10:38 AM Subject: Re: [RoundCube Dev] Sorting
Mojo Jojo wrote:
Any advice before I attempt this?
Sorting relies on the IMAP server because it takes way too long to fetch all headers from the server when accessing a mailbox that contains about 100K messages. But you expect to get the right 50 messages from that folder when sorting. Client-side sorting would mean to transfer 100K headers from the IMAP server through the RC server to the client which will surely break down under this heavy load.
This is the reason why client-side sorting is not on the road map and it will never be. We could talk about loading all messages into the cache and enable sorting when the message cache is complete. If you consider writing a patch solving your problem you should think into that direction.
Is it something that will be tough? Is this why it's not on the roadmap or just something most people don't need?
Since I have not dug into the code much yet, if anyone has any helpful info on where I should start it would be appreciated.
Finally, can someone tell me what the purpose of the sort options in the roundcube conf file if RC doesn't do client side sorting? Just a little confused I guess.
The default configuration of RoundCube does not know if your IMAP server supports sorting and that's the reason why those parameters are there! They are not meant to control any client-side sorting but define which cols should become clickable if sorting is supported.
Thanks..
Todd
Regards, Thomas
----- Original Message ----- From: "Chris Fordham" chris@xhost.com.au To: "Mojo Jojo" mylist@lightwavetech.com; "RoundCube Dev" dev@lists.roundcube.net Sent: Tuesday, February 14, 2006 10:37 PM Subject: Re: [RoundCube Dev] Sorting
Well client-side sorting is not on the roadmap and no one has offered to dev except for yourself... ... feel free to submit a patch.
On Wed, 15 Feb 2006 14:23:46 +1000, Mojo Jojo mylist@lightwavetech.com wrote:
Any thoughts on this? I really want to use RoundCube but can't without proper sorting.
Seems odd that it must rely on the IMAP server to sort, why not just sort based on the date in the email headers..
Can someone explain to me why my IMAP server must support SORT in order for the sorting to work?
I guess I don't get why RoundCube can't sort by date.
I am ready to dig into the code and write the changes myself if I can just get a little guidance or advice.
Thanks..