imap: set charset header to utf-8

Fixes #116
This commit is contained in:
MrViK 2020-11-21 14:29:50 +01:00 committed by Simon Ser
parent 5dc0d0b2e8
commit fdc51440c3
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ func (mbox *mailbox) attachmentBody(att *protonmail.Attachment) (io.Reader, erro
func inlineHeader(msg *protonmail.Message) message.Header { func inlineHeader(msg *protonmail.Message) message.Header {
var h mail.InlineHeader var h mail.InlineHeader
if msg.MIMEType != "" { if msg.MIMEType != "" {
h.SetContentType(msg.MIMEType, nil) h.SetContentType(msg.MIMEType, map[string]string{"charset": "utf-8"})
} else { } else {
log.Println("Sending an inline header without its proper MIME type") log.Println("Sending an inline header without its proper MIME type")
} }