Export Apple Mail .emlx messages to .eml, mbox and an index in your browser — Step-by-step guide
Apple Mail keeps each message as an .emlx file, which most other mail programs do not read. EmlxOut reads a Messages folder, a ZIP of one or loose .emlx files in your browser and gives you one .eml per message, one mbox file for import, and an index.csv with the date, sender, recipient, subject and attachment count of each message. Nothing is uploaded.
What the sample produces
The sample is a Messages folder written by a script: a plain message, a message with a PDF attachment, an encoded subject with a body line that starts with From, a partial message whose attachment is outside the file, and one file that is not an .emlx. The check cuts each message out with its byte count, compares every .eml with its source byte for byte, reads the mbox back with the From escaping undone, and checks each row of index.csv with a separate reader.
- Messages converted
- 4, as .eml and in one mbox
- Rows in index.csv
- 4, one per message
- Attachments missing outside the file
- 1
How to use it
- Copy the Messages folder of the mailbox you want out of Apple Mail's data folder, or select its .emlx files. Put the copy in a ZIP if that is easier to choose. macOS may ask for access to the Library folder first.
- Choose the folder, the ZIP or the .emlx files here. The preview counts the messages, the attachments and any file that is skipped. Nothing is uploaded.
- Download the mbox to import into a mail program, the ZIP of .eml files, or index.csv to sort and search the list in a spreadsheet.
Supported files
Reads Apple Mail .emlx files: a byte count on the first line, the RFC 822 message, then the plist of mail flags. Each message is written back byte for byte as a .eml, so its headers and attachments are kept. The mbox escapes body lines that start with From, so they survive the import. A .partial.emlx keeps its attachments outside the file; the attachment parts that name them are listed as missing and their content is not in the export. Mail flags such as read or flagged are not converted, and the Attachments folder of a mailbox is not read. Dates in index.csv are copied from the Date header as written. A file that is not a valid .emlx is skipped and reported. Up to 200 MB per message and 1 GB in all, read in browser memory. Checked against a generated mailbox written by a script, not an export from a live Mail account.