From 626f91c4832c097b7036d5063b2f0491397a9c70 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Wed, 12 Jun 2019 08:31:51 +0200 Subject: imap: respect the folder config option --- worker/imap/worker.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'worker/imap/worker.go') diff --git a/worker/imap/worker.go b/worker/imap/worker.go index d978755..aa59c27 100644 --- a/worker/imap/worker.go +++ b/worker/imap/worker.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/emersion/go-imap" - "github.com/emersion/go-imap-idle" + idle "github.com/emersion/go-imap-idle" "github.com/emersion/go-imap/client" "git.sr.ht/~sircmpwn/aerc/worker/types" @@ -26,6 +26,7 @@ type IMAPWorker struct { insecure bool addr string user *url.Userinfo + folders []string } client *imapClient @@ -75,6 +76,7 @@ func (w *IMAPWorker) handleMessage(msg types.WorkerMessage) error { } w.config.user = u.User + w.config.folders = msg.Config.Folders case *types.Connect: var ( c *client.Client -- cgit 1.4.1-2-gfad0