Hi @margarita.samodurova,
Another question, how to add an attachment to an existing message in a pst store.
Given a situation where I have the entry id of a message, I can extract the message using ExtractMessage
method on the PersonalStorage object. But this seems to return only a copy of the message but not a reference to the message in the PersonalStorage object.
This way any attachment added through mapiMessage.Attachments.Add(...)
do not make any change on the PST file.
How do I add an attachment to an existing message in the PST file?
I see FolderInfo.UpdateMessage(entryIdString, MapiMessage)
as an option, but this does not update the attachments list. Looks like only the properties are getting updated, but not the attachment list.
TIA,
Srinidhi