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
This commit is contained in:
Jelle Besseling 2019-08-04 22:02:01 +02:00 committed by Drew DeVault
parent 507c90537c
commit aeca428c14
1 changed files with 1 additions and 0 deletions

View File

@ -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()