Robi wrote:
Perhaps there should be a sort key first, ie default view of inbox, then cache a predefined number of messages and keep that across sessions.
RoundCube already has config parameters for that. These could be used to keep the first couple of pages.
Now if someone wants to resort everything, there's a penalty, unless one guesses which messages to pre-cache for this.. a header index would help since the content of the mail would only need to be retrieved if it's ever clicked on, but quck sorting on date/arrival/from/to etc woudln't use so much mem.
This is what the (new) caching actually does. We have cols for the most common headers for sorting and all headers are stored as a serialized string. The message body will be added to the cache when the message is shown.
all of these shoudl be config file parameters so users can tweak it according to their usage requirements. a nice default set is fine.
I don't think that all users will understand what they can configure here. This should be something that is configured by the system administrator.
other than that, you can always look at caching packages and see what they do and how they deal with thresholds.. shrug.
-- Robi
Regards, Thomas