I run a IMAP server which uses a maildir-like message store. In playing around with RC, I noticed that for large folders it took a long time to get a header list and sometimes the server even timed out the request. Investigation indicates that, by default, RC does server sorting by DATE.
DATE means the value of the Date: header in each message. To get this, the IMAP server has to open each message (ergo, file), read it, get the Date: header, and so on for each message in the folder. That's a open/read/close, for each message.
It would be way more efficient to sort on INTERNALDATE instead. This means that all the IMAP server needs to do is stat() each message file. The UID is part of the file's name, and the delivery date is the create time of the file... all which is found through one stat() call to each message file. Obviously, this far faster and I hard coded this into my SVN rev 400 copy of RC, and it's MUCH better.
The question is, is there any way I can configure RC to do INTERNALDATE instead of DATE sorting via main.inc.php ?
TIA
/dale