diff options
author | Koni Marti <koni.marti@gmail.com> | 2022-04-30 01:08:55 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-05-04 14:07:15 +0200 |
commit | 397a6f267f41c501f28d3adb9d641a9283af474f (patch) | |
tree | 9e30042b2415ed12a22f6be1eb63a00406630957 /worker/imap/configure.go | |
parent | 4d75137b20664cbdf90159c78d1fbf78779f3416 (diff) | |
download | aerc-397a6f267f41c501f28d3adb9d641a9283af474f.tar.gz |
imap: manage idle mode with an idler
Untangle the idle functionality from the message handling routine. Wait
for the idle mode to properly exit every time to ensure a consistent
imap state. Timeout when hanging in idle mode and inform the ui.
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/imap/configure.go')
-rw-r--r-- | worker/imap/configure.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/worker/imap/configure.go b/worker/imap/configure.go index ac1d606d..0bccbaea 100644 --- a/worker/imap/configure.go +++ b/worker/imap/configure.go @@ -95,5 +95,7 @@ func (w *IMAPWorker) handleConfigure(msg *types.Configure) error { } } + w.idler = newIdler(w.config, w.worker) + return nil } |