Fix EOF on message view
This commit is contained in:
parent
2d3cce64da
commit
1194b98e54
12
imap.go
12
imap.go
|
@ -253,12 +253,20 @@ func getMessagePart(conn *imapclient.Client, mboxName string, uid uint32, partPa
|
||||||
|
|
||||||
var partHeaderSection imap.BodySectionName
|
var partHeaderSection imap.BodySectionName
|
||||||
partHeaderSection.Peek = true
|
partHeaderSection.Peek = true
|
||||||
partHeaderSection.Specifier = imap.HeaderSpecifier
|
if len(partPath) > 0 {
|
||||||
|
partHeaderSection.Specifier = imap.MIMESpecifier
|
||||||
|
} else {
|
||||||
|
partHeaderSection.Specifier = imap.HeaderSpecifier
|
||||||
|
}
|
||||||
partHeaderSection.Path = partPath
|
partHeaderSection.Path = partPath
|
||||||
|
|
||||||
var partBodySection imap.BodySectionName
|
var partBodySection imap.BodySectionName
|
||||||
partBodySection.Peek = true
|
partBodySection.Peek = true
|
||||||
partBodySection.Specifier = imap.TextSpecifier
|
if len(partPath) > 0 {
|
||||||
|
partBodySection.Specifier = imap.EntireSpecifier
|
||||||
|
} else {
|
||||||
|
partBodySection.Specifier = imap.TextSpecifier
|
||||||
|
}
|
||||||
partBodySection.Path = partPath
|
partBodySection.Path = partPath
|
||||||
|
|
||||||
fetch := []imap.FetchItem{
|
fetch := []imap.FetchItem{
|
||||||
|
|
Loading…
Reference in a new issue