imap: if unspecified, type is text/html

This commit is contained in:
Simon Ser 2019-07-24 22:38:49 +03:00
parent 161569708a
commit d179ba123f
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 5 additions and 1 deletions

View File

@ -132,7 +132,11 @@ func (mbox *mailbox) fetchBodyStructure(msg *protonmail.Message, extended bool)
} }
} }
inlineType, inlineSubType := splitMIMEType(msg.MIMEType) inlineType := "text"
inlineSubType := "html"
if msg.MIMEType != "" {
inlineType, inlineSubType = splitMIMEType(msg.MIMEType)
}
parts := []*imap.BodyStructure{ parts := []*imap.BodyStructure{
&imap.BodyStructure{ &imap.BodyStructure{
MIMEType: inlineType, MIMEType: inlineType,