1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-04 16:45:09 -05:00

buffer data after decryption before mime parsing

This commit is contained in:
Vincent Breitmoser 2015-01-30 10:34:28 +01:00
parent 7158abe7ff
commit d57f6c0ed5

View File

@ -1,6 +1,7 @@
package com.fsck.k9.mailstore;
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
@ -39,6 +40,8 @@ public class DecryptStreamParser {
parser.setContentHandler(new PartBuilder(decryptedRootPart));
parser.setRecurse();
inputStream = new BufferedInputStream(inputStream, 4096);
try {
parser.parse(new EOLConvertingInputStream(inputStream));
} catch (MimeException e) {