When I export an email ‘A’ with an eml attachment ‘B’, the attachment’s extension is changed from .eml to .msg in the output pst file. As a result, Outlook can’t open the attachment ‘B’ directly; it has to be saved and renamed before it can be opened. It displays ‘A’ correctly.
MailMessage mailMessage = MailMessage.load(emlMessageInputStream, MessageFormat.getEml());
)
and I look at the attachment 'B' on the mailMessage I see it has the right extension (.eml) and mime type.
But in the resulting pst file, the attachment 'B' is not correct.
I will attach a test example message for 'A' and the resulting pst file to this post.