-
Notifications
You must be signed in to change notification settings - Fork 5
Description
A suggestion for fixing the lag when displaying labels on message load.
Instead of re-opening and closing an IMAP connection each time a message is loaded, how about using the the IDLE command orNOOP command every 29 minutes to maintain the connection opened ?
That way you'd need not to AUTHENTICATE/LIST/SELECT/FETCH each time a message is loaded.
Combined with a folder observer listening to folder switches, you can SELECT an IMAP mailbox upon folder changed (loaded/unloaded events, IIRC).
Also, with (Erratum: Actually IDLE you can observe IMAP mailboxes and catch when a message label is edited.X-GM-LABELS are not added in IDLE'd FETCH unsolicited responses, though)
At last, you could prefetch labels from messages visible in the mailview pane, and prefetch next ones each time the user scrolls.