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