소스 검색

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
부모
커밋
62910a94fb
No known key found for this signature in database GPG 키 ID: FDE7BE0E88F5E48
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. +3
    -0
      plugins/base/imap.go

+ 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
}



불러오는 중...
취소
저장