mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Properly decode the body in MessageExtractor.getTextFromPart()
This commit is contained in:
parent
abbad18283
commit
d7085a2f07
@ -84,7 +84,7 @@ public class MessageExtractor {
|
|||||||
* Now we read the part into a buffer for further processing. Because
|
* 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.
|
* 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 {
|
try {
|
||||||
String text = CharsetSupport.readToString(in, charset);
|
String text = CharsetSupport.readToString(in, charset);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user