mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-19 20:21:45 -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;
|
package com.fsck.k9.mailstore;
|
||||||
|
|
||||||
|
|
||||||
|
import java.io.BufferedInputStream;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -39,6 +40,8 @@ public class DecryptStreamParser {
|
|||||||
parser.setContentHandler(new PartBuilder(decryptedRootPart));
|
parser.setContentHandler(new PartBuilder(decryptedRootPart));
|
||||||
parser.setRecurse();
|
parser.setRecurse();
|
||||||
|
|
||||||
|
inputStream = new BufferedInputStream(inputStream, 4096);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
parser.parse(new EOLConvertingInputStream(inputStream));
|
parser.parse(new EOLConvertingInputStream(inputStream));
|
||||||
} catch (MimeException e) {
|
} catch (MimeException e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user