I can't turn off threadsort or stop advertising sort in my IMAP server since I have other IMAP clients that depend on this.
Instead, I headed into program/lib/imap.inc
on line 849 (or thereabouts, in function iil_C_Sort)
and changed this line
to this:Code:$command = 's ' . $is_uid . 'SORT (' . $field . ') ';
(new version 3/6/2009 restores filtering functionality in 0.2-stable)Code:if ($field == 'DATE' && !$add) { /* courier sends back headers sorted by date already - but if you ask it to sort by date it gets sloooow */ $command = 's ' . $is_uid; } else { $command = 's ' . $is_uid . 'SORT (' . $field . ') '; }
So now if the default sort-by-date is requested, the SORT command isn't passed to courier at all. Suddenly my RoundCube is blazing fast (unless I sort by something else, like size... but that I can live with).
If any developers are reading this thread, it would be nice to add a config option for this.
-tom


LinkBack URL
About LinkBacks



Reply With Quote
it works pretty fine.
