Hi,
I've had some problems when an account has a huge amount of emails, I use IMAP server (courier) and RC 0.1.1 . I've been reading the forum looking for solutions and the changes I've applied work sometimes fine, but not perfectly:
- First I set the DISABLE_THREAD_SORT as true in the imap configuration, because the sorting was being made by the server, and it took too long to read every message in a folder. It seemed to improve the RC load, but the server's load increased excessively (don't know why) and sometimes the sorting didn't work.
- Maybe the problem was that RC didn't know that server wasn't sorting, so I removed the option SORT from the IMAP capabilities (setting DISABLE_THREAD_SORT as false to avoid overload). Then the load was really quick and server didn't overload, but as it happened before, sorting didn't work in some cases.
- Then I remembered I had disabled the $rcmail_config['enable_caching'] option in config/main.inc.php. I thought enabling it again could solve the sorting problem, but I was wrong, the only that happens is that the cache table in the RC database is filled (as it's supposed to do)
- In the accounts where the sort doesn't work, their files were migrated, so there was a change in the date and time information (of the files) and I guess that's the problem.
Maybe sort functionality is not supported (or not in all cases), checking the alpha version I realized that is possible to sort by different fields but doesn't work properly. I wonder if the RC team is aware of these problems and if they are improving it.
I hope this information will be useful.
Thanks,
Javi