summary refs log tree commit diff stats
path: root/worker
diff options
context:
space:
mode:
authorJelle Besseling <jelle@pingiun.com>2019-08-04 22:02:01 +0200
committerDrew DeVault <sir@cmpwn.com>2019-08-08 09:47:15 +0900
commitaeca428c14e542b23774e3fa6ec27dc08271ba71 (patch)
tree5a5eacc9f6331a6b12cb51698b3bc18dc5ec3f53 /worker
parent507c90537c66289633af4b26abddcfd50a2a29d0 (diff)
downloadaerc-aeca428c14e542b23774e3fa6ec27dc08271ba71.tar.gz
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
Diffstat (limited to 'worker')
-rw-r--r--worker/imap/worker.go1
1 files changed, 1 insertions, 0 deletions
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()
d='n137' href='#n137'>137 138 139 140 141 142 143 144 145 146 147 148