Working with OLM Files
Contents
[
Hide
]
OLM is a file format used by Microsoft Outlook for Mac to store local data such as emails, attachments, notes, calendar data, contacts, tasks, and history. Unlike the PST format used by Outlook for Windows, OLM files are only compatible with Outlook for Mac and cannot be opened by Outlook for Windows directly.
Aspose.Email for .NET provides the Aspose.Email.Storage.Olm namespace, which lets you open, read, traverse, and convert OLM files without Microsoft Outlook installed. The main types you will use are:
- OlmStorage - represents an Outlook for Mac (.olm) storage file and provides access to the data it contains.
- OlmFolder - represents a folder inside the storage and exposes its messages and sub-folders.
- OlmMessageInfo - provides short, read-only information about a message in the storage.
- OlmItemCategory - represents an Outlook item category with its name and color.
This section covers the following topics:
- Opening OLM Files - open an OLM file from a path or stream and load corrupted files with a traversal callback.
- Navigating OLM Folders - enumerate the folder hierarchy, retrieve folders by name, and read folder paths.
- Reading and Extracting OLM Messages - list, filter, page through, and extract messages from folders.
- Counting Items and Working with Categories - count items and read Outlook category colors.
- Converting OLM to PST - migrate an OLM file to the Windows Outlook PST format.