From 4cf0ea2a056708274438189e6eb3a0c805bf4ae1 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Mon, 1 Nov 2021 21:19:17 +0100 Subject: imap: use builtin idle support go-imap supports IDLE since 1.2.0. Remove dependency to go-imap-idle. Link: https://github.com/emersion/go-imap/commit/ac3f8e195ef1b6d Signed-off-by: Robin Jarry --- worker/imap/open.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'worker/imap/open.go') diff --git a/worker/imap/open.go b/worker/imap/open.go index 891b8a23..0a0d9fea 100644 --- a/worker/imap/open.go +++ b/worker/imap/open.go @@ -18,9 +18,6 @@ func (imapw *IMAPWorker) handleOpenDirectory(msg *types.OpenDirectory) { }, nil) } else { imapw.worker.PostMessage(&types.Done{types.RespondTo(msg)}, nil) - if imapw.idleStop == nil { - imapw.idleStop = make(chan struct{}) - } } } -- cgit