浏览代码
plugins/base: Add missing nil check for getMailboxByType
Fixes panic if there is no usable Sent folder.
master
fox.cpp
4 年前
committed by
Simon Ser
找不到此签名对应的密钥
GPG 密钥 ID: FDE7BE0E88F5E48
共有
1 个文件被更改,包括
3 次插入 和
0 次删除
-
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 |
|
|
|
} |
|
|
|
|
|
|
|