buffer data after decryption before mime parsing
This commit is contained in:
parent
7158abe7ff
commit
d57f6c0ed5
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue