The following example shows you how to open a Microsoft Outlook .ost file and read its folders and messages. The library uses the same API for both .pst and .ost files; only the file extension differs.
Note: when working with an .ost file always start from the Root folder (file.root()) and not from the mailbox root. The mailbox root folder ("Top of Personal Folders") does not exist in an .ost file, so use file.root() to enumerate the folder hierarchy. For .pst files you can start from either root() or mailbox_root().