Export Apple Mail to Markdown
One file per email on your Mac, by date, by account or by kind, and new mail arrives as it comes in.
An email, as a file.
The front matter says who sent it, to whom, from which account and which of Mail's tabs it sits in. Then the subject and the body as clean Markdown.
---
title: "Your order has shipped"
id: "mail-491560"
created: 2026-09-28T14:02:11
modified: 2026-09-28T14:02:15
source_url: "message://%3C8f2c41@mail.example.com%3E"
from: "Example Store <orders@example.com>"
to: "you@example.com"
read: true
account: "you@example.com"
kind: transactions
---
# Your order has shipped
Your package is on its way and arrives **Thursday, October 1**.
| Item | Qty |
|---|---|
| Walnut desk tray | 1 |
[Track your package](https://example.com/track/491560)What comes out
One file per email, named by its day, its subject and a short number, in folders you choose: by date, by account or by kind.
Primary, Transactions, Updates, Promotions and Not Sorted by Mail, the tabs Mail itself sorts by. Untick Promotions and they stay out of your files.
Each account is named by its address, the way you know it. Untick one and its mail stays out.
Headings, lists, tables and links come through as Markdown, so a receipt reads like a receipt.
Updates and Promotions start unticked, and so do Drafts and Trash. Deleted mail, Spam and Junk never sync.
By Date, By Account or By Kind. Change it and every file moves at the next sync, with nothing left at the old place.
Exporter watches Mail's own index, so while it runs a new email becomes a file on its own, with no press.
How it works
- 1Connect Mail
A panel opens on Mail's own folder: press Open Mail Folder and select it. Exporter reads the mail Mail keeps on your Mac, and macOS asks nothing else.
- 2Choose emails
Two tabs, Kinds and Accounts. An email syncs when both tick it.
- 3It syncs
Press Sync. The newest 1,000 emails come first, in seconds, and the rest after Unlock Mail.
How it works: Mail docsGuides: Apple Mail in ClaudeSave emails as files
Questions
Still have questions? Get in touch
Does this need Full Disk Access?
What is free?
Are attachments exported?
Can I use the files in Obsidian or Claude?
Is anything uploaded?
Against the alternatives
Mail saves one message at a time as .eml or PDF, made to open in another mail app or to print.
| Feature | Exporter | Save As .eml | Print to PDF |
|---|---|---|---|
| Readable Markdown | Yes | No | No |
| Every email at once | Yes | One at a time | One at a time |
| Sorted by Mail's kinds | Yes | No | No |
| Kept in sync | Yes | No | No |
| Price | 1,000 emails free, then a one-time purchase | Free | Free |
Let Claude read your email
Exported emails are searchable over Exporter's local MCP server. Set it up.
Then ask: “Which subscriptions did I pay for this year, and what did each cost?” Claude reads the receipts as files.
$ claude mcp add --transport http exporter http://localhost:8744/mcp