From 74d09943c0fcf15e7f8e196462da63c154f3105d Mon Sep 17 00:00:00 2001 From: cketti Date: Thu, 22 Jan 2015 11:59:06 +0100 Subject: [PATCH] Use MimeMessageHelper.setBody() when parsing BODYSTRUCTURE This will correctly set the MIME type of the part containing the body. Otherwise multiparts end up having a content type of text/plain (default) in the database... oops. --- .../src/main/java/com/fsck/k9/mail/store/imap/ImapStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k9mail-library/src/main/java/com/fsck/k9/mail/store/imap/ImapStore.java b/k9mail-library/src/main/java/com/fsck/k9/mail/store/imap/ImapStore.java index 6cf6825fe..65661738b 100644 --- a/k9mail-library/src/main/java/com/fsck/k9/mail/store/imap/ImapStore.java +++ b/k9mail-library/src/main/java/com/fsck/k9/mail/store/imap/ImapStore.java @@ -1710,7 +1710,7 @@ public class ImapStore extends RemoteStore { break; } } - part.setBody(mp); + MimeMessageHelper.setBody(part, mp); } else { /* * This is a body. We need to add as much information as we can find out about