Convert MBOX to EML

Turn MBOX emails into EML files. Each message becomes one EML file, numbered in mailbox order, with its headers, bodies and attachments byte for byte.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop MBOX files on the dialor turn it to pick what to do

One EML file for every email in the mailbox.Each message in the MBOX becomes its own EML file, numbered in mailbox order.

  1. What you get

    One EML file per message. The files are numbered in the order the messages sit in the mailbox, so the first email comes out as the first file.

    Headers, bodies and attachments are copied byte for byte. Nothing in the message itself is rewritten.

  2. What changes

    Only the mailbox framing is removed. The From separator lines that divide one message from the next are taken out, since a single EML file has no use for them.

    The > that the mailbox puts in front of a From at the start of a body line is removed as well. The body text is back as it was written.

  3. When it fails

    If the file cannot be parsed, the conversion stops with input_corrupted. The conversion has no options to set.

    To go the other way, use EML to MBOX.

MBOX and EML.What each format is.

The formats

From · MBOX

Mailbox

A mailbox file with many emails one after another. What Thunderbird, Apple Mail and Google Takeout export.

Extensions
.mbox
MIME type
application/mbox
Kind
Email
To · EML

Email Message

A single email as sent over the wire. Headers, body and MIME attachments.

Extensions
.eml
MIME type
message/rfc822
Kind
Email

In your code.The same MBOX to EML conversion through the API, for your app or your agent.

terminal
$ cv convert report.mbox report/ --to eml
$ cv convert report.mbox report/ --to eml

Questions.What people ask about MBOX to EML.

01OF 04

Yes. Attachments are kept byte for byte, along with the headers and bodies.

They are numbered in mailbox order, so the numbers follow the order of the messages in the MBOX.

The file could not be parsed. The conversion stops with this code in that case.

Only in two places. The From separator lines between messages are removed, and so is the > that escapes a From at the start of a body line.

More conversions.Other ways in and out of MBOX and EML.