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:
parent
7158abe7ff
commit
d57f6c0ed5
@ -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 New Issue
Block a user