GODT-213: Force no transfer encoding for embedded message/rfc822 parts

This commit is contained in:
James Houlahan
2021-04-13 12:46:15 +02:00
parent 1359c39bc0
commit f5aba717b2
2 changed files with 5 additions and 2 deletions

View File

@ -382,6 +382,8 @@ func getAttachmentPartHeader(att *pmapi.Attachment) message.Header {
// Use base64 for all attachments except embedded RFC822 messages.
if att.MIMEType != "message/rfc822" {
hdr.Set("Content-Transfer-Encoding", "base64")
} else {
hdr.Del("Content-Transfer-Encoding")
}
return hdr