How do I convert .partial.emlx files to .eml with their attachments?
A .partial.emlx file is an Apple Mail message without its attachments; the attachments are separate files in a folder named Attachments. To get a complete .eml, each attachment has to be encoded and written back into its place in the message. EmlxRescue does that in the browser for a whole Mail folder, and writes .eml files or one .mbox per mailbox.
What .emlx and .partial.emlx files are
| Part of the file | What it holds |
|---|---|
| First line | The number of bytes of the message, as text, padded with spaces. For example 44126. |
| The message | Exactly that many bytes: the email as it was received, headers and body. Cut out and saved on its own, it is an .eml file. |
| Property list | A short XML list written by Mail, with keys such as date-received, flags and remote-id. |
In a .partial.emlx, the parts that were attachments still have their headers (file name, type, encoding), but their content is gone, and a header line X-Apple-Content-Length stands in its place.
Where Mail keeps the attachments
Next to the Messages folder there is an Attachments folder. Inside it: a folder with the number of the message, then a folder with the number of the part, then the file.
| File | What it is |
|---|---|
lists.mbox/…/Data/1/Messages/1498.partial.emlx | Message 1498 of the mailbox “lists”, without its attachment. |
lists.mbox/…/Data/1/Attachments/1498/3/Report.pdf | The content of part 3 of message 1498. |
A part inside another part has a number with a dot, such as 2.4. When the headers of a part give no file name, the folder of that part holds a single file, and that file is the attachment.
About finding the folder, Apple’s help page says: “To get to the Mail folder on a Mac, click the desktop to make sure you’re in the Finder, press and hold the Option key, choose Go > Library, then select the Mail folder.” Source: Apple Support, “Import or export mailboxes in Mail on Mac”, read on November 24, 2026. In a copy of your user folder it is the same place: Library, then Mail.
What Apple’s own export does
Apple’s help page says: “Mail can import email messages that have been exported in mbox format from other email apps” and “You can export mailboxes in mbox format.” The export is a command in Mail: “Select one or more mailboxes, then choose Mailbox > Export Mailbox.” It needs a Mac where Mail still opens those mailboxes. The same page says Mail can import “a folder in the ~/Library/Mail/ folder on another Mac”, so with a working Mac you can try that first.
With only the files, on a Windows PC or with no Mail to open them, the files have to be converted.
Step by step
- Copy the
Mailfolder from your backup to a disk your computer can open. - Open EmlxRescue and drop the folder on the page, or press “Choose folder”. Pick a folder that holds both
MessagesandAttachments: the whole Mail folder, one account, or one.mboxfolder. - Look at the list: mailboxes, messages, partial messages, attachments found and missing. Click a message to see its headers and text.
- Download: one
.mboxper mailbox, all of them in a ZIP, or a ZIP of.emlfiles. Downloadreport.csvto see every attachment that was put back or is missing.
Do it in your browser
Drop your Mail folder. EmlxRescue reads it on your computer and writes standard files with the attachments put back. Nothing is installed and nothing is uploaded. Free: reading everything, the full report, and converting the first 25 messages of each mailbox. $9 once for everything.
Convert my mailmbox or eml
| Output | What you get |
|---|---|
.mbox | One file per mailbox with every message, one after another. Each message starts with a line “From sender date”, where the date is the one Mail recorded as received. Lines end in LF, and a “>” is put before any line that starts with “From ” (the mboxrd convention). |
.eml in a ZIP | One file per message, in a folder per mailbox, named with Mail’s number: Inbox/1498.eml. A plain .emlx gives exactly the bytes Mail stored. |
report.csv | Every attachment of every partial message (put back or missing), and every file that could not be read. |
How an attachment goes back in
- The part’s headers stay, without
X-Apple-Content-Length. - If the part says
base64, the file is written as base64 in lines of 76 characters. If it saysquoted-printable, as quoted-printable. - If the part says
7bitor8bit, it is written as quoted-printable and its header says so. This is what the reference tool does. - The rest of the message is not touched.
The conversion follows the open-source command-line tool partial-emlx-converter by Philipp Katz (MIT license), and we used its sample files to check the result.
Limits
- Attachments that are not in your copy cannot be recovered. The message is converted without them and the report lists them.
- No PST. The output is mbox and eml.
- It does not read
.mboxor.olmfiles, and it does not import into any mail account. - Size. Messages are handled one at a time. A ZIP is closed and a new one started at 60,000 files or 2 GB.
FAQ
Can I just rename .emlx to .eml?
No. An .emlx has a line with a number before the message and a property list after it. The .eml is the part in between. For a .partial.emlx, the attachments also have to be put back.
My .partial.emlx files have no Attachments folder. What then?
The messages are converted with their text, and the attachments stay empty. EmlxRescue lists each one in the report with the folder where it was expected, so you can look for that folder in another copy of your backup.
Is there a free tool for this?
Yes: partial-emlx-converter is free and open source. It runs from the command line and its page says it is installed with Homebrew or npm. EmlxRescue runs as a web page and also writes mbox.