Преглед на файлове

Fix EOF on message view

master
Simon Ser преди 4 години
родител
ревизия
1194b98e54
No known key found for this signature in database GPG ключ 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{


Зареждане…
Отказ
Запис