diff options
-rwxr-xr-x | plugins/base/imap.go | 3 |
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 } |