I have an MSG formatted email message. The message contains several forwarded messages. The body type of the email is HTML.
When I use MapiMessage.FromStream(stream), I have 44 attachments in MapiMessage.Attachments. Using the method described in Differentiating between Inline and Regular Attachments|Documentation , I can get 4 non-inline attachments, which are correct.
When I use MailMessage.Load(stream), I have 8 attachments in MailMessage.Attachments, and 36 LinkedResources. Out of the 8 attachments in MailMessage.Attachments, there are 4 files identified as attachment, and the other 4 are inline resources, identified using MapiMessage.
Does it mean we always need to use MapiMessage for MSG files? Or we need to add extra filter to MailMessage.Attachments to get the legitimate attachments from an email message?