Contents can't be read from OST completely

hi sir,
this is the code i am using.

using (PersonalStorage pst = PersonalStorage.FromFile(pstFileName))
{
FolderInfo inbox = pst.RootFolder.GetSubFolder(“Inbox”);
foreach (MessageInfo messageInfo in inbox.EnumerateMessages())
{
using (MemoryStream ms = new MemoryStream())
{
pst.SaveMessageToStream(messageInfo.EntryIdString, ms);
}
}
}

not getting the all the subfolders, everytime the total emails count coming zero(0)
i am attaching my .ost file

thanks & regards
Mantu Malakar

Hi Mantu,


Thank you for writing to Aspose Support team.

Could you please help us locate a specific folder where you face this issue with the number of items? When we use some third party tools to open the OST file and browse to a specific folder, we get error and are unable to determine the number of items in that specific folder such as the Inbox folder. We’ll appreciate if you could share the required information about a specific folder or share some 3rd party OST reading tool that we can use to verify your stance.

PS: Please note that Aspose.Email API doesn’t take into account the permanently deleted items that other 3rd party tools still show.