瀏覽代碼

Fix EOF on message view

master
Simon Ser 4 年之前
父節點
當前提交
1194b98e54
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: FDE7BE0E88F5E48
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. +10
    -2
      imap.go

+ 10
- 2
imap.go 查看文件

@@ -253,12 +253,20 @@ func getMessagePart(conn *imapclient.Client, mboxName string, uid uint32, partPa

var partHeaderSection imap.BodySectionName
partHeaderSection.Peek = true
partHeaderSection.Specifier = imap.HeaderSpecifier
if len(partPath) > 0 {
partHeaderSection.Specifier = imap.MIMESpecifier
} else {
partHeaderSection.Specifier = imap.HeaderSpecifier
}
partHeaderSection.Path = partPath

var partBodySection imap.BodySectionName
partBodySection.Peek = true
partBodySection.Specifier = imap.TextSpecifier
if len(partPath) > 0 {
partBodySection.Specifier = imap.EntireSpecifier
} else {
partBodySection.Specifier = imap.TextSpecifier
}
partBodySection.Path = partPath

fetch := []imap.FetchItem{


Loading…
取消
儲存