Hello,
Just installed Office Outlook 2021 and created a new account, then got its OST file and according to here:
The process for reading an OST file with Aspose.Email is exactly the same as for reading a PST file
So my code:
Using MyStorage As Email.Storage.Pst.PersonalStorage = Email.Storage.Pst.PersonalStorage.FromFile(GlobalStorageFile, xxxLoadOptionsxxx)
ReadOST(MyStorage.RootFolder.GetSubFolders)
End Using
Private Sub ReadOST(ByVal InputFolders As Email.Storage.Pst.FolderInfoCollection)
For Each MyFolder As Email.Storage.Pst.FolderInfo In InputFolders
For Each MyMSG As Email.Storage.Pst.MessageInfo In MyFolder.EnumerateMessages
MsgBox(MyMSG.SenderRepresentativeName)
MsgBox(MyMSG.DisplayTo)
MsgBox(MyMSG.Subject)
End Sub
I get strange characters for many of .SenderRepresentativeName / .DisplayTo / .Subject properties!
Some masterpieces returned:
Case 1:
From: 陵䑐莆綸⋥䦪H
Subject: Thank you for interest in Aspose Products
Case 2:
From: ȁ軧놷ﱧ핵㶂믍⪟销쨕錂挊ǀ旯
Subject: How are you getting on with Aspose APIs?
Case 3: (a lovely From string, multiline + .Subject belongs to another message)
From: https://forum.aspose.com/letter_avatar_proxy/v4/letter/t/9de0a6/45.png tahir.manzoor https://forum.aspose.com/u/tahir.manzoor
September 4
@australian.dev.nerds https://forum.aspose.com/u/australian.dev.nerds
To ensure a timely and accu
Subject: Subject: You’ve got a reply from xxx Team
- Funny is that in case 3, values returned by .SenderRepresentativeName and .Subject of the same MessageInfo do not belong to a single message inside .OST!
** More fun is that if I change my reading code from:
For Each MyMSG As Email.Storage.Pst.MessageInfo In MyFolder.EnumerateMessages
to:
For Each MyMSG As Email.Storage.Pst.MessageInfo In MyFolder.GetContents
now, I’ll get different values for the above properties!
Pretty x’ed up!
*** In case I need to send my .OST file, I don’t see an attachment option!