How to export a mailbox from Mail on a Mac

By

Select the mailbox in Mail's sidebar and choose Mailbox › Export Mailbox…. Mail writes a folder ending in .mbox that another copy of Mail can import. Here's what's inside it, and how to turn it into PDFs you can open anywhere.

You want a copy of a mailbox outside Mail: a folder of client emails before you leave a job, or an old account before you close it.

In Mail, select the mailbox in the sidebar and choose Mailbox › Export Mailbox…, then pick a folder. Mail writes a folder named after the mailbox, ending in .mbox. It’s a backup that Mail, or another mail app, can import again. It isn’t something you can open and read, and that’s where Mailbox to PDF comes in.

To turn single emails into PDFs instead, see the tutorials on saving an email as a PDF and saving many emails as PDFs.

Export the mailbox

The test Mac runs macOS 15 Sequoia, and its Mail has made-up mailboxes with made-up emails. Here the mailbox is Keller Accounting, with three emails about an invoice. It sits inside a mailbox called Clients.

  1. Click the mailbox in Mail’s sidebar.
  2. Choose Mailbox › Export Mailbox….

Mail's Mailbox menu with Export Mailbox… highlighted, below New Mailbox…, New Smart Mailbox…, Rename Mailbox… and Delete Mailbox…

  1. Mail asks for a folder: “Choose a destination folder for mailbox exports…”. Click Show Options to see Export all subfolders, for a mailbox that has mailboxes inside it. Keller Accounting has none, so the box was greyed out.
  2. Pick a folder and click Choose.

Mail's folder picker with the title Choose a destination folder for mailbox exports…, an empty folder named export, the option Export all subfolders greyed out, and the buttons New Folder, Hide Options, Cancel and Choose

No message says it’s done, and the export was in the folder a moment later.

What’s inside the .mbox?

Mail recreated the place of the mailbox: a folder named Clients, and in it Keller Accounting.mbox. In the Finder it’s a plain folder with a triangle next to it, so you can look inside without Show Package Contents:

The Finder on the folder Clients: Keller Accounting.mbox, a Folder, opened to show two documents, mbox of 2 KB and table_of_contents of 577 bytes

  • mbox holds the three emails, one after the other, with their attachments, as one long text file.
  • table_of_contents is a small file Mail adds for itself.

To read the emails again, you import the folder. Mail’s File › Import Mailboxes… offers “Apple Mail”, for “mailboxes created by another copy of Mail or a folder containing them”, and the imported mailbox lands in a mailbox named Import.

So an export is good for moving a mailbox to another Mac or keeping a backup for Mail. It’s not good for handing to an accountant or a lawyer.

Turn the export into PDFs

Mailbox to PDF is a Mac app I made that turns emails into PDFs, with their attachments in a folder next to each PDF. A mailbox exported with Mailbox › Export Mailbox… opens in it directly, without an import into Mail. It isn’t made by, affiliated with or endorsed by Apple. It costs $19, paid once.

  1. Click Choose Files… under Files, or drop the .mbox folder on the window.
  2. Select Keller Accounting.mbox and click Choose Files.

Files need no permission. The list shows the three emails, with a paper clip on the one with a receipt attached:

Mailbox to PDF with Keller Accounting: 3 emails, Tom Becker RE: Invoice for March, Ana Ruiz Re: Invoice for March with a paper clip, Marta Keller Invoice for March, all ticked, Make set to One PDF per conversation, Save attachments in a folder next to each PDF ticked, and the button Save 1 PDF…

  1. In Make, choose One PDF per conversation. The three emails are one conversation, a question and two replies, so the button says Save 1 PDF….
  2. Click it, pick a folder and click Save Here.

Mailbox to PDF after saving: Done, Saved 1 PDF with 3 emails in Keller PDFs, Saved 1 attachment, the file 2024-03-09 Invoice for March.pdf, and the buttons Start Over, Back to the List and Show in Finder

The PDF has three pages, one per email, in the order they were sent. It’s named after the first email, 2024-03-09 Invoice for March.pdf, and dated in the Finder like the last reply, March 11, 2024. The receipt is in a folder with the same name next to it.

The two replies, “Re:” from Ana and “RE:” from Tom, stayed in the same conversation: the app goes by the headers that say which email answers which, not by the subject alone.

Or skip the export

If the mailbox is still in Mail, you don’t need the export for the app. Choose a Mailbox… lists the mailboxes of every account. On the test Mac it showed Archive 2024, Clients with Keller Accounting inside it, INBOX in capitals, and Outbox under On My Mac. Pick one and click Read This Mailbox.

In that list the paper clip is a guess from each email’s headers, because the app reads each email in full only when it saves it. The report at the end counts the attachments that were really saved.

The .mbox and the PDFs side by side

Mail’s export (.mbox)PDFs from Mailbox to PDF
What opens itMail or another mail app, after an importPreview, or any PDF reader, on any computer
FilesOne folder per mailbox, the emails in one mbox fileOne PDF per email, per conversation, or one for everything (up to 2,000 emails)
AttachmentsInside the mbox fileNext to each PDF, in a folder with the same name
DatesWhen you exportedThe date of each email
Good forA backup, moving to another MacSending, printing, keeping as documents
From a mailbox in Mail to an .mbox to PDFsExport Mailbox in Mail writes a folder ending in .mbox. That folder can be imported into Mail again, or opened in Mailbox to PDF, which turns it into PDFs with the attachments next to them.Mailbox › ExportMailbox…File › ImportMailboxes…Mailbox to PDF: ChooseFiles…Mailbox to PDF: Choosea Mailbox…Mailbox in MailKellerAccounting.mboxBack in MailPDFs withattachments next tothem

Get Mailbox to PDF

Turn emails into PDFs: the ones selected in Mail, a whole mailbox, or an .mbox or .eml file. One PDF per email, per conversation, or one for everything, with the attachments in a folder next to each PDF.

See Mailbox to PDF → · Read the docs · $19. See the app page for tax details.

More tutorials for my apps →

Want me to talk about your product? You can sponsor this site.