aboutsummaryrefslogtreecommitdiff
path: root/worker/imap
diff options
context:
space:
mode:
Diffstat (limited to 'worker/imap')
-rw-r--r--worker/imap/create.go5
1 files changed, 1 insertions, 4 deletions
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{