1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Fixed loading messages from the database when message format is AUTO

This commit is contained in:
cketti 2012-06-01 20:03:03 +02:00
parent 116e9598da
commit 67caa357fd

View File

@ -1589,13 +1589,13 @@ public class LocalStore extends Store implements Serializable {
mp.addBodyPart(bp); mp.addBodyPart(bp);
} }
if (mAccount.getMessageFormat() == MessageFormat.HTML) { if (mAccount.getMessageFormat() != MessageFormat.TEXT) {
if (htmlContent != null) { if (htmlContent != null) {
TextBody body = new TextBody(htmlContent); TextBody body = new TextBody(htmlContent);
MimeBodyPart bp = new MimeBodyPart(body, "text/html"); MimeBodyPart bp = new MimeBodyPart(body, "text/html");
mp.addBodyPart(bp); mp.addBodyPart(bp);
} }
// If we have both text and html content and our MIME type // If we have both text and html content and our MIME type
// isn't multipart/alternative, then corral them into a new // isn't multipart/alternative, then corral them into a new
// multipart/alternative part and put that into the parent. // multipart/alternative part and put that into the parent.