How can i find send and received date of email messages in a pst file using .net Aspose.Email
Hi,
Thank you for contacting Aspose support team and we are sorry for delayed response.
Following is a sample code which opens a PST and extracts a messages from it where the sent and received time of the messages is displayed for your reference. Please feel free to write us back if you have any other query related to Aspose.Email.
PersonalStorage pst = PersonalStorage.FromFile(@“D:\Aspose\Testpst.pst”);
FolderInfo fInfo = pst.GetPredefinedFolder(StandardIpmFolder.Inbox);
MessageInfoCollection coll = fInfo.GetContents();
foreach (MessageInfo info in coll)
{
MapiMessage msg = pst.ExtractMessage(info);
Console.WriteLine(“Client submit time:” + msg.ClientSubmitTime);
Console.WriteLine(“delivery time:” + msg.DeliveryTime);
}
FolderInfo fInfo = pst.GetPredefinedFolder(StandardIpmFolder.Inbox);
MessageInfoCollection coll = fInfo.GetContents();
foreach (MessageInfo info in coll)
{
MapiMessage msg = pst.ExtractMessage(info);
Console.WriteLine(“Client submit time:” + msg.ClientSubmitTime);
Console.WriteLine(“delivery time:” + msg.DeliveryTime);
}