From e8c6a56fd223a16e5949d08e3bf73701c6810a25 Mon Sep 17 00:00:00 2001 From: m0viefreak Date: Thu, 25 Dec 2014 14:42:42 +0100 Subject: [PATCH] Use correct sub-part of a multipart message when getting text. 946565347a758a0ff239b809a3c4fa6278af962e passed 'this' to getTextFromPart() which could be a multipart. This caused all multipart messages to show 'No text' as the body. Fix it by passing it the correct 'part' that was found. --- k9mail/src/main/java/com/fsck/k9/mailstore/LocalMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k9mail/src/main/java/com/fsck/k9/mailstore/LocalMessage.java b/k9mail/src/main/java/com/fsck/k9/mailstore/LocalMessage.java index ca28ce812..d4fe73d6e 100644 --- a/k9mail/src/main/java/com/fsck/k9/mailstore/LocalMessage.java +++ b/k9mail/src/main/java/com/fsck/k9/mailstore/LocalMessage.java @@ -130,7 +130,7 @@ public class LocalMessage extends MimeMessage { } } else { // We successfully found an HTML part; do the necessary character set decoding. - text = MessageExtractor.getTextFromPart(this); + text = MessageExtractor.getTextFromPart(part); } return text; }