imap: if unspecified, type is text/html
This commit is contained in:
parent
161569708a
commit
d179ba123f
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue