mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 07:36:44 +00:00
GODT-213: Force text/plain for custom message text part
This commit is contained in:
@ -81,7 +81,8 @@ func writeCustomTextPart(
|
|||||||
|
|
||||||
var hdr message.Header
|
var hdr message.Header
|
||||||
|
|
||||||
hdr.SetContentType(msg.MIMEType, nil)
|
// Even if it is HTML, we don't care... we abuse pgp/inline here.
|
||||||
|
hdr.SetContentType("text/plain", nil)
|
||||||
|
|
||||||
part, err := w.CreatePart(hdr)
|
part, err := w.CreatePart(hdr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -95,7 +96,7 @@ func writeCustomTextPart(
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// writeCustomTextPart writes an armored-PGP data part for an attachment that couldn't be decrypted.
|
// writeCustomAttachmentPart writes an armored-PGP data part for an attachment that couldn't be decrypted.
|
||||||
func writeCustomAttachmentPart(
|
func writeCustomAttachmentPart(
|
||||||
w *message.Writer,
|
w *message.Writer,
|
||||||
att *pmapi.Attachment,
|
att *pmapi.Attachment,
|
||||||
|
|||||||
Reference in New Issue
Block a user