Fixed encoding of nested messages (2)

This commit is contained in:
M66B 2022-10-06 09:44:32 +02:00
parent e7b2d0a59e
commit bf6d596ce6
1 changed files with 5 additions and 0 deletions

View File

@ -912,6 +912,11 @@ public class IMAPMessage extends MimeMessage implements ReadableMime {
return;
}
InputStream is = getMimeStream();
if (this instanceof IMAPNestedMessage) {
String encoding = getEncoding();
if (encoding != null)
is = MimeUtility.decode(is, encoding);
}
try {
// write out the bytes
byte[] bytes = new byte[16*1024];