Fixed encoding of nested messages (2)

pull/209/head
M66B 3 years ago
parent e7b2d0a59e
commit bf6d596ce6

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

Loading…
Cancel
Save