Sfoglia il codice sorgente

Fix EOF on message view

master
Simon Ser 4 anni fa
parent
commit
1194b98e54
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: FDE7BE0E88F5E48
1 ha cambiato i file con 10 aggiunte e 2 eliminazioni
  1. +10
    -2
      imap.go

+ 10
- 2
imap.go Vedi File

@@ -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{


Caricamento…
Annulla
Salva