It's much faster to sort the cached message headers on the RoundCube server than get all the messages re-sorted from the IMAP server every time...
I would have chosen the same way to implement message sorting as Justin did.
Regards, Thomas
David Saez Padros wrote:
Hi !!
another question about sorting: how to make it work in message view?
maybe sorting should be better done at server side (almost all of them support it)
eg, when i go to a mailbox, sort it, then view a message, if i use the next or previous message button, then i lose the sorting. at the moment, the next and previous buttons only know about the uid of the message, not the sorting order.
squirrelmail handles this by storing an array in the session which maps message ids for a given mailbox with the sort ranking for a particular type of sort for each message. any thoughts on how we should implement this? can anyone think of a better way than the one used by squirrelmail?
if sorting is done at the server side, this problem and many others will go away, the problem is that if there is any server that does not support server sorting that feature will not be available for it. it's a risky decision.