Hello,
I have a bunch of PST files that are 5+ GB in size. I am planning to read them using Aspose.Email.Storage.Pst.PersonalStorage.FromFile() to extract calendar data from the pst files. Any suggestions/recommendations on the best approaches to use so that I don’t run into memory issues or hangs? Below is the code snippet of what I do for each pst:
// FolderInfo folderInfo, PersonalStorage personalStorage
MessageInfoCollection messages = folderInfo.GetContents();
foreach (MessageInfo messageInfo in messages)
{
// Extract message information
MapiMessage message = personalStorage.ExtractMessage(messageInfo);
if (message.MessageClass == "IPM.Appointment")
{
var calEvent = message.ToMapiMessageItem() as MapiCalendar;
.......
Thanks,
Vijay