Hi,
Sorry I also have a second question for this post.
Hi Chamindu,
Thank you for writing to us.
In order to differentiate between Inline and Regular attachments, I would request you to please have a look at our technical article Differentiating between Inline and Regular Attachments. I have tested your attachment file with it and it reports the image as inline attachment.
In order to do the same for MailMessage, you can extract the inline images from a message file using LinkedResources of the message. Please let us know if we can be of any additional help to you.
Java Code Sample:
MailMessage msg = MailMessage.load("Inline Image Test.msg");
LinkedResourceCollection lrc = msg.getLinkedResources();
for (int i=0; i< lrc.size(); i++)
{
LinkedResource lr = (LinkedResource)lrc.get(i);
System.out.println(lr.getContentType().getMediaType());
if (lr.getContentType().getMediaType().equals("image/bmp"))
lr.save(lr.getContentId() + ".bmp");
}