When does MapiMessage.getMessageClass() method can return null? (Java)

I have some code which does MapiMessage.fromFile(fileName).getMessageClass() using aspose-email for java 19.7 and it is returning null for that String value.

Under what circumstances is that expected behavior?

Thanks!

@cemeyer2,

I request you to please share the sample MSG file and working sample code with us so that we may investigate it further on our end. I also suggest you to please first try using latest Aspose.Email for Java 19.8 as well on your end.

@mudassir.fayyaz

I tried with 19.8 and got the same null back. the msg is attached here

MapiMessage.fromFile(fileName).getMessageClass()

is returning null for this msg

null_messageClass.msg.zip (2.6 KB)

@cemeyer2,

I have observed the sample file shared by you. An issue with ID EMAILJAVA-34580 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

@cemeyer2,

We have investigated the issue on our end. The message file is corrupted and according to docs property value can be located in a separate stream called:

_substg1.0<>

In the message file wrong name is used:

_substRg1.0<>

Please refer to this web link for your further kind reference as well.