Read Outlook for Mac OLM File and Get Folders and SubFolders Information
Read Outlook for Mac OLM File and Get Folder and Subfolder Information
Aspose.Email for Java provides an API for reading Outlook for Mac data files in OLM format. An OLM file can be loaded into an instance of the OlmStorage class. After loading the OLM file into the OlmStorage class, you can get the information about the file display name, root folder, subfolders and messages count.
Read OLM file
The following code snippet shows you how to load the OLM file and get its content.
Get Folder Path
You may also get the folder path of folders in the OML file. Aspose.Email provides OlmFolder.Path property which returns the folder path. The following code snippet demonstrates the use of OlmFolder.Path property to get the folder paths in the OML file.
Count the number of items in the folder
You may also count the number of items in the folder. Aspose.Email provides OlmFolder.MessageCount property which returns the number of items in the folder. The following code snippet demonstrates the use of OlmFolder.MessageCount property to get the number of items in the folders of the OML file.