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

Free Support Forum - aspose.com

Usage of extractProperty

Is there any example available for PersonalStorage extractProperty?

Hi Mark,

Thank you for posting your inquiry.

The extractProperty message can be used to extract a message’s property without retrieving complete message. Please have a look at the following code sample that reads delivery time of every message from the PST file and displays it on output. Please let us know if you have any further query in this regard.

Sample Code:

<pre style=“font-family: “Courier New”; font-size: 9pt;”>PersonalStorage pst = PersonalStorage.fromFile(“input.pst”);

FolderInfo inbox = pst.getRootFolder().getSubFolder(“Inbox”);

for (MessageInfo message:inbox.enumerateMessages())
MapiProperty sendDate = pst.
extractProperty(message.getEntryId(), MapiPropertyTag.PR_MESSAGE_DELIVERY_TIME);