Feature Request: Aspose replace messages in PST file

We would like to be able to replace a message inside a PST file.
We don’t want to delete and add the message since this will change the EntryId of the message.
Also, we would like the API to support replacing multiple messages at once for performance reasons.

The API that we are asking for would look like this:

using (var pstStorage = PersonalStorage.FromFile(filename, true))
{
//Read messages here and update them in memory (in MapiMessage objects)
//…

//Replace the messages in the PST file
//entryIds as a string[] containing the entry ids of the messages
//messages is a MapiMessage[] that contains the messages
pstStorage.ReplaceMessage(entryIds, messages); //This is the new API

}

@bahakh,

Thank you for writing to Aspose support team.

This feature request is shared with the product team. We will log a new feature request in our issue tracking system once feedback is available from the product team.

1 Like

@bahakh,

We are sorry but implementing this feature is similar to deleting the existing message and add another one, which won’t be possible. You can, however, use the PersonalStorage.ChangeMessage or FolderInfo.ChangeMessage to update a message properties as required. For more information, please visit, Updating Message Properties, article of API documentation.