Skip to content

Better IMAP: Messages labels prefetching #36

@kael

Description

@kael

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 IDLE command or the NOOP 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 IDLE you can observe IMAP mailboxes and catch when a message label is edited. (Erratum: Actually 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions