From d7085a2f07df9719e1fdbdfc0a450b487af09d0b Mon Sep 17 00:00:00 2001 From: cketti Date: Mon, 5 Jan 2015 00:57:25 +0100 Subject: [PATCH] Properly decode the body in MessageExtractor.getTextFromPart() --- .../main/java/com/fsck/k9/mail/internet/MessageExtractor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k9mail-library/src/main/java/com/fsck/k9/mail/internet/MessageExtractor.java b/k9mail-library/src/main/java/com/fsck/k9/mail/internet/MessageExtractor.java index ba0bfa42f..809be651b 100644 --- a/k9mail-library/src/main/java/com/fsck/k9/mail/internet/MessageExtractor.java +++ b/k9mail-library/src/main/java/com/fsck/k9/mail/internet/MessageExtractor.java @@ -84,7 +84,7 @@ public class MessageExtractor { * Now we read the part into a buffer for further processing. Because * the stream is now wrapped we'll remove any transfer encoding at this point. */ - InputStream in = part.getBody().getInputStream(); + InputStream in = MimeUtility.decodeBody(body); try { String text = CharsetSupport.readToString(in, charset);