From 06da4512b98e6dd0526522f5350d22555d7e5d83 Mon Sep 17 00:00:00 2001 From: Daniel Bridges Date: Wed, 10 Jul 2019 21:49:09 -0700 Subject: #190 Handle gmail duplicate folder --- worker/imap/create.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'worker/imap') diff --git a/worker/imap/create.go b/worker/imap/create.go index 3cc71c5..6ce71ef 100644 --- a/worker/imap/create.go +++ b/worker/imap/create.go @@ -1,15 +1,12 @@ package imap import ( - "strings" - "git.sr.ht/~sircmpwn/aerc/worker/types" ) func (imapw *IMAPWorker) handleCreateDirectory(msg *types.CreateDirectory) { if err := imapw.client.Create(msg.Directory); err != nil { - if strings.HasPrefix(err.Error(), "Mailbox already exists") { - // ignore "already exists" error + if msg.Quiet { return } imapw.worker.PostMessage(&types.Error{ -- cgit v1.2.3