Read Outlook OST File

Skip to end of metadata
Go to start of metadata
Aspose.Email for .NET provides API for reading Microsoft Outlook OST files. You can load an OST file from disk or stream in an instance of Aspose.Email.Outlook.Pst.PersonalStorage class and get the information about its contents e.g. folders, subfolders and messages.

Microsoft Outlook creates PST file for email storage when you use POP3 or IMAP mail servers for downloading messages. It creates OST file when you use Microsoft Exchange as your mail server. OST also supports large file sizes as compared to PST.

Reading an OST file with Aspose.Email is exactly similar to reading a PST file. Same code can read both PST and OST file, you just have to provide the correct file name to PersonalStorage.FromFile() method.

Programming Sample
[C#]
// load the Outlook PST file
string strBaseFolder = @"E:\Data\Emails\";
string strPSTFile = @"Exchange 2010 Emails.ost";
PersonalStorage pst = PersonalStorage.FromFile(strBaseFolder + strPSTFile);

// get the Display Name of the PST file
Console.WriteLine("Display Name: " + pst.DisplayName);
 
[VB.NET]
' load the Outlook PST file
Dim strBaseFolder As String = "E:\Data\Emails\"
Dim strPSTFile As String = "Exchange 2010 Emails.ost"
Dim pst As PersonalStorage = PersonalStorage.FromFile(strBaseFolder & strPSTFile)

' get the Display Name of the PST file
Console.WriteLine("Display Name: " & pst.DisplayName)
 
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.