Converters

What Apple Mail Export Mailbox actually produces

The built in export works, up to a point. It writes a package rather than a plain file, and that alone explains most of the trouble people have moving the result anywhere else.

13 min read

What lands on disk is a folder wearing a file's extension. Finder shows one item ending in .mbox. The real MBOX file that every other application wants is inside it. Point another mail client at the outer item and it fails. Point it at the file within and it works.

That one distinction accounts for most of the reports of Apple Mail exports failing to import anywhere else.

What Apple Mail Export Mailbox actually writes

Select a mailbox, choose Export Mailbox from the Mailbox menu and pick a destination. Mail creates something called Sent.mbox or whatever the mailbox was named.

That item is a package rather than a file. Apple's own documentation uses exactly that word, which is worth knowing when another application insists on being given a file. Finder hides the difference. The way through it is the contextual menu on the item itself.

  • PkgArchive.mboxWhat Finder shows you, as though it were one file
  • FilemboxThe actual export, with every message and attachment inside it
  • Filetable_of_contentsAn index Apple Mail uses and nothing else needs
  • Filea support file or twoContents vary by macOS version and none of it matters elsewhere
The file with no extension is the one that matters. Everything else in the package exists for Apple Mail's benefit.

The file named mbox is a genuine MBOX file in the standard sense. It is plain text, messages separated in the usual way, attachments carried inside the body as base64 rather than kept beside it. Anything that reads an MBOX file will read it.

This is not the same thing as the live store. Apple Mail keeps working mail as individual emlx files. A folder full of those is not an export. People who copy the store instead of exporting from it end up trying to import emlx files into applications that have never heard of them, which is a different failure with the same symptom.

Why the .mbox package causes so much trouble

Apple gave a folder the extension of a file format. The two behave nothing alike.

An application asking for an MBOX file expects a file. It gets a directory wearing the same extension and cannot make sense of it. Some refuse outright. Others appear to work while importing nothing. Both outcomes are widely reported and both look like a corrupt export rather than a wrong selection.

The fix is to go one level deeper. Control click the package and the menu offers Show Package Contents. Use the file named mbox inside it instead of the folder around it. Copy that file out somewhere ordinary first, since many applications will not browse into a package at all.

The reports of Thunderbird showing an imported folder tree with no messages are nearly all this. The structure came across because that is what was selected. The messages did not, because the file holding them never was.

What travels in an Apple Mail export and what stays behind

In the export

Comes with you

Read more: What IMAP and POP actually store on your Mac.

  • Every message in the mailbox
  • Headers, dates and addresses
  • Attachments, encoded into the file
  • The mailbox as a unit

Not in the export

Left behind

  • Subfolders, unless deliberately included
  • Contacts and calendars, which are other applications
  • Rules, signatures and account settings
  • Read and flagged states, at least reliably

The read state is the one people notice. Those flags live in headers each client reads its own way, so mail arriving elsewhere can land entirely unread. The messages are complete. Only the marks on them are lost. The per message files the export reads from are EMLX, a format built for indexing rather than for moving.

What Export Mailbox will not do

Three limits, none of them documented anywhere prominent.

  • No partial export. The command takes whole mailboxes. For a handful of messages, drag them from the message list into a Finder window instead. You get one EML file each.
  • No overwrite. Run it twice on one mailbox and Mail numbers the second rather than replacing the first. Duplicates pile up quietly.
  • No progress that means anything. A large mailbox takes far longer than the interface suggests. There is no completion notice worth trusting.

One thing it does do, despite claims otherwise, is handle several mailboxes in one go. Apple's documentation says select one or more. You get a package per mailbox. Anywhere telling you to export them one at a time is describing a restriction that is not there.

Re importing into Apple Mail

Going back the way you came is the one case where the package works as intended.

Import Mailboxes on the File menu offers a list of sources. The choice between two of them decides whether this works.

What you are holdingSource to choose
The .mbox package Mail wroteApple Mail
A bare mbox file, extracted or from Thunderbird or Google TakeoutFiles in mbox format

Apple frames the second option as the one for material arriving from a Windows or UNIX machine, which is why it goes unnoticed by people holding a file that came off a Mac. Pointing the Apple Mail source at a bare file or the mbox source at a package is the usual reason an import reports nothing to bring in. Whatever comes in lands in a mailbox called Import at the foot of the sidebar, not in the one it was taken from. Moving it into place is a separate job.

Watch for a reported size ceiling. Import failures on large mailboxes come up enough to plan around, with two gigabytes cited as the point where things start going wrong. Apple documents no such limit, so treat it as a reason to export in several mailboxes rather than one enormous one.

Re importing into Thunderbird or another client

Thunderbird is the common destination and the common source of complaints, almost all of which come back to the package.

Thunderbird has no native mbox import, which surprises people given that mbox is its own storage format. The route is the ImportExportTools NG add on, pointed at the extracted file rather than the package.

Folder hierarchy does not survive the trip. A single MBOX file holds one flat mailbox and carries nothing about nesting, so a tidy structure on the Mac arrives as a single heap. Exporting each mailbox separately is what preserves the shape, at the cost of doing it more times.

Deciding what to move and proving it arrived is a separate job from running the export. Destinations that are not mail clients need something different again. Getting mail into PDF, into a document system or into whatever format a business keeps records in means parsing the MBOX and writing something else. An MBOX converter for Mac does that without needing either application open.

Common questions

Why does my exported mailbox look like a single file?

Because Finder presents it as one. macOS displays certain folders as single items. This is one of them. The contextual menu has an entry for looking inside.

Does the export include attachments?

Yes. They are encoded into the MBOX file alongside the messages rather than sitting beside it as separate files, which is what makes the result portable in one piece.

Can I export only some messages from a mailbox?

Not with this command. It takes whole mailboxes and nothing smaller. Selecting a handful of messages and dragging them to a Finder window gives you EML files instead, which suits a small set.

Does it export contacts or calendars?

No. Mail exports mail. Contacts and calendars belong to other applications and have their own export routes entirely.

Why does Thunderbird show the folders but no messages?

Almost always because it was pointed at the package rather than the file inside it. Go into the package and select the file named mbox, which is the one Thunderbird understands.

Do read and unread states survive?

Not reliably across applications. The status lives in headers that each client interprets its own way, so a re import can arrive entirely unread. The messages themselves are intact, which is the part that matters.

Sources

Every date, version number and path above is taken from these pages rather than from memory.

  1. Import or export mailboxes in Mail on Mac, on packages and import sources Apple Support
  2. I cannot get my Mac OS X Mail.app mailboxes imported by Thunderbird Mozilla Support
  3. Where are my imported mail messages, on Apple Mail exports in Thunderbird Mozilla Support
  4. Importing Apple Mail .mbox, on the folder structure the add on sees ImportExportTools NG, GitHub