summaryrefslogtreecommitdiff
path: root/worker/imap/configure.go
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-04-30 01:08:55 +0200
committerRobin Jarry <robin@jarry.cc>2022-05-04 14:07:15 +0200
commit397a6f267f41c501f28d3adb9d641a9283af474f (patch)
tree9e30042b2415ed12a22f6be1eb63a00406630957 /worker/imap/configure.go
parent4d75137b20664cbdf90159c78d1fbf78779f3416 (diff)
downloadaerc-397a6f267f41c501f28d3adb9d641a9283af474f.zip
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.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/worker/imap/configure.go b/worker/imap/configure.go
index ac1d606..0bccbae 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
}