From 397a6f267f41c501f28d3adb9d641a9283af474f Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Sat, 30 Apr 2022 01:08:55 +0200 Subject: 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 Acked-by: Robin Jarry --- worker/imap/configure.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'worker/imap/configure.go') 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 } -- cgit