I’m trying to read a few hundred PST files and get some basic information from them. Basically just the earliest and latest dates from the messages. Is there a faster way than the following function?
Thank you for contacting Aspose support team.
You may please modify your code such that instead of fetching the complete message, extract the required property.
// I believe this is what is taking so long
// MapiMessage mapi = pst.ExtractMessage(msgInfo);
MapiProperty propDelvTime = pst.ExtractProperty(msgInfo.EntryId, MapiPropertyTag.PR_DELIVER_TIME);
DateTime dt = propDelvTime.GetDateTime();
Please give it a try and let us know the feedback.
When I use your code propDelvTime is always null. Any idea why that would be the case?
I am using version 18.104.22.168
I upgraded and using this code it now works.
Another related question. Is there a way to extract the attachments without extracting the message first?
But let me re-phrase my question. I don’t actually need to extract the attachments. I just need access to their properties. Specifically the size of the attachment. Does that still require me to extract the mapiMessage and then get the attachment properties from that?
Thank you again!!