From aeca428c14e542b23774e3fa6ec27dc08271ba71 Mon Sep 17 00:00:00 2001 From: Jelle Besseling Date: Sun, 4 Aug 2019 22:02:01 +0200 Subject: Don't print imap errors to ui This fixes ~sircmpwn/aerc2#245. This sets up the imap client to send error messages to the logger of the worker. Errors now end up in the bottom status line. https://todo.sr.ht/~sircmpwn/aerc2/245 --- worker/imap/worker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/worker/imap/worker.go b/worker/imap/worker.go index b1ef9c9..1341167 100644 --- a/worker/imap/worker.go +++ b/worker/imap/worker.go @@ -126,6 +126,7 @@ func (w *IMAPWorker) handleMessage(msg types.WorkerMessage) error { default: return fmt.Errorf("Unknown IMAP scheme %s", w.config.scheme) } + c.ErrorLog = w.worker.Logger if w.config.user != nil { username := w.config.user.Username() -- cgit v1.2.3