till wrote:
What about only periodically checking for the "unread count" from the server - for example, only during "check new mail" and besides we just decrement the number "on read" (for example with the previewpane). I think Google Mail does it like that.
This is exactly what RoundCube does. Only the unread count of the current folder is updated directly from the IMAP server. All other counts are read from cache. Also when marking a message as read, the new count is retrieved from IMAP and stored in cache again.
The 'getunread' command also reads the counts from cache. I don't understand why this should cause so much traffic. OK, it's an extra request causing an extra IMAP-Login.
~Thomas _______________________________________________ List info: http://lists.roundcube.net/dev/