We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Can you get a folderinfo from a mapimessage?

We have a list of entry IDs that have been extracted from a PST (by a means we do not control). Using the extractmessage we can retrieve the mapimessage object. Is there a way to get the message parent folderinfo so we can get the full path?

Thank you

Hi Jon,

Thank you for writing to Aspose Support team.

We are sorry to share but there is no such property or method that can be used to get the full message path in a PST or folder. The entity id represents the unique identification of the message and can be used to extract message only. Please let us know if we can be of any additional help to you.

Hi Jon,

We would like to update you about your this requirement. We have discussed it with our Product team and will provide the enhancement where you will be able to get parent FolderInfo using the EntryId. The enhancement ticket id for this purpose is EMAILNET-35063. We’ll update you here once there is some information available in this regard.

The issues you have found earlier (filed as EMAILNET-35063) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Can you share the version that this was addressed in, and also how to accomplish it?


The following code sample shows the usage of this feature. Please try it at your end and let us know if you need any further assistance in this regard.

Sample Code:

using (PersonalStorage pst = PersonalStorage.FromFile(fileName))

foreach (FolderInfo folder in pst.RootFolder.GetSubFolders())
foreach (MessageInfo msg in folder.EnumerateMessages())
FolderInfo fi = pst.GetParentFolder(msg.EntryId);
Assert.AreEqual(folder.EntryId, fi.EntryId);