Quoting Aria Bamdad <[email protected]>:

Regarding turning caching on, I have done so and have set long periods of
time for cache expiration delays but even so, a user with several thousand
messages has a long login delay after a day of inactivity (with IMP).  I am
not sure how IMP decides when the cache is no longer valid and has to be
recreated.

For the mailbox listing cache (sort): anytime the mailbox changes. So anytime a mailbox receives a new message, or you delete a message, the entire mailbox needs to be resorted. So mailbox list caches are not terribly useful for mailboxes that see a lot of turnover (e.g. INBOX).

But message caching is much more useful: data cached for each message is only purged when the UIDVALIDITY for a mailbox change (which, in most cases, is never). message caching prevents us from having to grab the message headers, message structure, and the associated parsing for every message shown. This can greatly reduce the network traffic between PHP box -> IMAP server, and will speed display since parsing complex messages (and MIME-encoded headers) can be expensive operations.

In my case, the only thing that helped was to set the limit on
sorting to mailboxes of 1000 or fewer messages.  I wish there was a way to
just turn off sorting at login and still allow for sorting after login.
Basically,  a parameter that allowed to force the sort order to 'by arrival'
if mailbox contains greater than X messages.  This way, the client still has
the option of sorting but does not have a performance problem loggin in.
With the current configuration options, it's either sorting is enabled or
disabled.

This could be done with a prefs hook, I believe. If not, it could be accomplished by a postlogin hook.

michael

--
___________________________________
Michael Slusarz [[email protected]]


--
IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]

Reply via email to