diff options
Diffstat (limited to 'worker')
-rw-r--r-- | worker/imap/list.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/worker/imap/list.go b/worker/imap/list.go index 41924d86..7a8fc17c 100644 --- a/worker/imap/list.go +++ b/worker/imap/list.go @@ -94,9 +94,12 @@ func (imapw *IMAPWorker) handleListDirectories(msg *types.ListDirectories) { &types.Done{Message: types.RespondTo(msg)}, nil) } +const NonExistentAttr = "\\NonExistent" + func canOpen(mbox *imap.MailboxInfo) bool { for _, attr := range mbox.Attributes { - if attr == imap.NoSelectAttr { + if attr == imap.NoSelectAttr || + attr == NonExistentAttr { return false } } |