I’m working in a situation where I have a stream of MAPI properties coming in for messages and their attachments and recipients, and want to recreate the original messages with full fidelity. Aspose seems to have rich support for all mapi properties so that seems very realistic.
However, one peculiarity I found is that I can’t create an “empty” recipient or attachment on a Mapi message.
I want to do the following:
var attachment=new MapiAttachment(); ...set properties onto attachment... message.Attachments.Add(attachment);
But I’m unable to create a new MapiAttachment object. Instead I have to create an attachment with:
msg.Attachments.Add("dummy name", new byte); var attachment=msg.Attachments.First();
And that risks some characteristics of the dummy one leaking into the message I’m trying to recreate. The same is true of msg.Recipients.
Is there a way around this?