This Java error is returned when calling MapiMessage.fromStream(…)
Aspose Email ver 22.4 for java (code snippet is using Groovy):
I see a similar case in your Forum for SLIDESJAVA-38563.
MailMessage msg = MailMessage.load(msgFile.absolutePath);
def jMsgStm = msg.attachments.get_Item(0)
if (!jMsgStm) {
println "Get Attachment Fail"
} else {
if (jMsgStm.contentType == 'message/rfc822') {
def innerEmail = MapiMessage.fromStream(jMsgStm.getContentStream())
if (innerEmail.headers['X-MS-Journal-Report'] != null) {
image.jpg (229.0 KB)