aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base')
-rwxr-xr-xplugins/base/imap.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/base/imap.go b/plugins/base/imap.go
index a693228..06e6e20 100755
--- a/plugins/base/imap.go
+++ b/plugins/base/imap.go
@@ -130,6 +130,9 @@ func getMailboxByType(conn *imapclient.Client, mboxType mailboxType) (*MailboxIn
return nil, fmt.Errorf("failed to get mailbox with attribute %q: %v", attr, err)
}
+ if best == nil {
+ return nil, nil
+ }
return &MailboxInfo{best}, nil
}