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
1 changed files with 1 additions and 1 deletions

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