Skill: olm-convert
Description
Use the open-source olm-convert toolkit to convert an Outlook for Mac .olm archive into a tree of standard .eml or .html message files for downstream parsing or ingestion.
Environment
- •OS: macOS or Linux
- •Requirements:
- •
python3in PATH - •
olm-convertinstalled (viapipor cloned repo)- •Example:
pip install olm-convertor local clone of the GitHub project
- •Example:
- •
Capabilities
- •Converts a
.olmfile to.emlor.html. - •Preserves folder hierarchy in the output directory.
- •Optionally skips attachments for lighter exports.
- •Can also export contacts to vCard format and calendar to ICS format.
Tools
Tool: convert_olm_to_eml
- •Type: shell
- •Entry point:
python3 olmConvert.py - •Arguments:
- •
olmPath(string) – path to source.olm. - •
outputDir(string) – directory where converted mail will be written. - •
--format {eml,html}(optional, defaulteml). - •
--noAttachments(optional, flag). - •
--verbose(optional, flag).
- •
- •Output:
- •File tree like:
- •
<outputDir>/user@example.com/Inbox/Subject - 2025-02-02 21.04.56.eml
- •
- •File tree like:
Example command
bash
python3 olmConvert.py \ --format eml \ --verbose \ "/path/to/archive.olm" \ "/path/to/output"
Usage
- •Run this skill after
export-cache-to-olmhas created an.olm. - •Feed resulting
.emlfiles into other agents for parsing, deduping, or indexing.
References
- •
olm-convertGitHub project (free, MIT-licensed OLM converter) with CLI usage and module API: [https://github.com/PeterWarrington/olm-convert] - •Example usage and options taken from the project's README, including
olmConvert.pyCLI syntax andconvertOLM(olmPath, outputDir, ...)module entry point.
Citation IDs
- •[web:47] PeterWarrington/olm-convert - GitHub