Export Apple Mail to Markdown
Transform emails into searchable markdown documents.
What you get
- One Markdown file per email, in a folder per year, named by its date and subject
- The email as Markdown, without the quoted history, footers or tracking links
- Each file starts with
from,to,mailbox,read, itscreatedandmodifieddates, and amessage://link that opens the email in Mail
Where the files go
alto-index/mail/2025/2025-08-15 Your order has shipped 2110.md
What you choose
- Tick the kinds (Primary, Transactions, Updates, Promotions) and the accounts and mailboxes: an email is written when both are ticked
- A new connection starts with Updates, Promotions, Drafts and Trash unticked
Left out
- Junk and deleted messages
- Attachments
- An email whose body Mail has not downloaded says so in its file
Free and paid
Your first 200 emails export and keep syncing free. Then one purchase unlocks Mail: on its own, as one of any three apps, or with all of them. See pricing.
With Claude
The MCP server lets Claude Desktop search your mail, and /altoindex:search in the Claude plugin searches it with everything else.