Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

go-imap v2: Add IdleBackend #15

Open
foxcpp opened this issue Jul 27, 2020 · 0 comments
Open

go-imap v2: Add IdleBackend #15

foxcpp opened this issue Jul 27, 2020 · 0 comments

Comments

@foxcpp
Copy link

foxcpp commented Jul 27, 2020

With go-imap v2 backend changes, updates are no longer sent directly but instead may be held back before command is sent.

IDLE is special in this case as it allows updates to be sent immediately but in current implementation backend does not know it can do so.

Something like that will work just fine I suppose:

type IdleBackend interface {
  Idle(done <-chan struct{})
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant