Hi,
In my scenario I use MailMessage class to process messages from Exchange Server, which are TNEF messages (EML message with one MIME part - application/ms-tnef; name=“winmail.dat”).
After processing I save message in the same format by means of PreserveTnefAttachments flag.
But recently I got additional task - I must analyze attachment MAPI properties to find there special named property. It is easy with MapiMessage, but still I need use MailMessage in order to save message in the original format.
Aspose do has MailMessageInterpretor and we can convert MapiMessage to MailMesage, but after saving converted message it does NOT have winmail.dat MIME part, it will be multipart/mixed - original format is lost.
MailMessage has LinkedResources collection, which includes inline images (like signature) etc. MapiMessage has only one collection for all attachments (Attachments). So is there any means to get definite correspondence between attachments in MapiMessage.Attachments and MailMessage.Attachments collections?
If so, I will be able to get attachment’s named property by MapiMessage, but use MailMessage.Attachments to process email and save in the original format.
Or there may be another approach…
Best regards,
Alex Sloma