Convert MBOX to JSONL
Turn MBOX emails into JSONL. One JSON line per message with its date, sender address and name, recipients, copy recipients, subject, message id, attached file names, size in bytes and body as plain text; an HTML-only body is reduced to text.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop MBOX files on the dialor turn it to pick what to do
Your mailbox as one JSON line per email.Each message becomes one line of JSON, ready for scripts and datasets.
What you get
One JSONL file. Each message in the MBOX file becomes one line, so the lines follow the mailbox message by message.
Every line holds the date, the sender address and name, the recipients, the copy recipients, the subject and the message id. It also holds the attached file names, the size in bytes and the body as plain text.
What happens to the body
The body is stored as plain text. If a message has only an HTML body, it is reduced to text, so the markup is not kept.
Attachments are not carried over. Only their file names are listed on the line.
When it fails
If the MBOX file cannot be parsed, the conversion stops with
input_corrupted. No output file is made in that case.This conversion has no options, so there is nothing to set. To combine the result with other files, you can merge JSONL.
MBOX and JSONL.What each format is.
The formats
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
JSON Lines
JSON Lines, one JSON object per line, the format of logs and datasets.
- Extensions
- .jsonl .ndjson
- MIME type
- application
/jsonl - Kind
- Text and data
In your code.The same MBOX to JSONL conversion through the API, for your app or your agent.
$ cv convert report.mbox report.jsonl$ cv convert report.mbox report.jsonlQuestions.What people ask about MBOX to JSONL.
One file. Each email is a line inside it.
No. Only the attached file names are listed for each message.
If a message has only an HTML body, it is reduced to plain text. The body field holds text.
The file could not be parsed. The conversion stops and gives no JSONL.