Properly decode the body in MessageExtractor.getTextFromPart()
This commit is contained in:
parent
abbad18283
commit
d7085a2f07
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue