Cor Bosman wrote:
Hi all, ive seen several requests on the mailinglist and forums
concerning sorting by internaldate. Looking through the code there
seems to be pieces of code to facilitate this, but either I cant find
the way to actually set this, or it's not finished. For many imap
servers a SORT (ARRIVE) is orders of magnitude faster as all you need
to do is stat() the files. For SORT (DATE) you need to open every
single email (which can be tens of thousands), find the Date header,
then sort all of them. And all so you can find the 50 messages
roundcube wants to show.
On my server (dovecot 1.1) the ARRIVE sorting is 80% faster, but for folder with 7k messages it's only 0.01 sec.
It should be trivial to add a user-configurable option in roundcube to
allow sorting by arrival date. Id be more than happy to make a patch.
Would this be something of use to RC?
Not so trivial, for database caching you must add column for internal date (and handle it). Or maybe use message ID would be sufficient? Other thing is a lack of internal date column on messages list, so changing sorting order could be confusing. But.... it's possible, so if you like, create a patch, we'll see.