1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

Properly decode the body in MessageExtractor.getTextFromPart()

This commit is contained in:
cketti 2015-01-05 00:57:25 +01:00
parent abbad18283
commit d7085a2f07

View File

@ -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);