mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +00:00
GODT-213: Force no transfer encoding for embedded message/rfc822 parts
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user