Hi, I have been testing whether Aspose.Network.Mail can support the parsing of mail messages with multiple tiers of embedded .msg files.
What appears to happen is that when reading an Attachment stream as a .Eml formatted MailMessage the attachments are not parsed.
Is this a bug? I looked at using the MapiMessage.LoadFromProperties route but this does not effectively allow access to a stream to save any changes to the messages.
Is there a. a way of achieving this currently or b. a fix for this?
Aspose.Network provides outlook message files attachment supports. Please check the sample code blow.
Because the attached outlook message is not simple binary format data like other files. The outlook file is embeded as object data.
MapiMessage outlook = MapiMessage.FromFile(path);//load the outter message file foreach (MapiAttachment att in outlook.Attachments)//check attachments {
//if object data is not null and the object data is outlook message if (att.ObjectData != null && att.ObjectData.IsOutlookMessage) {
//load the properties from object data. MapiMessage attch = MapiMessage.FromProperties(att.ObjectData.Properties); } }