Open .eml files and folders
Mbox Viewer opens single .eml files, Apple Mail .emlx files and whole folders of them, as
well as .mbox files. It imports the messages into an mbox file of its own, then indexes that copy
like any mbox file. Search, tags, virtual folders and the MCP server then work on the imported
mailbox exactly as on an mbox file.
Which sources can I open?
| Source | What Mbox Viewer reads | Mailbox name |
|---|---|---|
One .eml file |
One message in the standard format of an email, without an mbox envelope | The file name without its extension |
One .emlx file |
One message saved by Apple Mail. The app reads the byte count on the first line and the message that follows. It ignores the property list at the end. | The file name without its extension |
Several .eml files at once |
Every selected file, in one mailbox | The name of the folder that contains them |
| A folder | Every .eml and .emlx file in the folder and its subfolders |
The folder name |
Most mail clients save a message as an .eml file when you drag it to the desktop or choose
Save As. Apple Mail keeps each message of its own storage as an .emlx file.
How do I open an .eml file or a folder?
| What to open | How |
|---|---|
One .eml or .emlx file |
Click Open and select the file, or drop it onto the window |
Several .eml files |
Select them together in the open dialog, or drop them together onto the window |
| A folder | Click Open a folder of .eml files on the welcome screen or in the menu of the arrow next to Open, choose File › Open Folder… (⌘⇧O on macOS, Ctrl+Shift+O on Windows), or drop the folder onto the window |
Mbox Viewer imports the messages first. The import writes them to an mbox file in the app data folder, then indexing starts as described in Open your first mbox. The progress bar and the Indexing… N% status work the same way.
When you select or drop several .eml files at once, they become one mailbox. The mailbox is named
after the folder that contains them. For files from different folders, it is the deepest folder
that contains all of them.
Which files does a folder import include?
Mbox Viewer walks through the folder and all its subfolders:
- It imports every file whose name ends in
.emlor.emlx. - It skips hidden files, such as
.DS_Store, and every file with another extension. - It skips hidden folders. On a Mac this includes
~/Library, so opening your home folder does not import the messages that Apple Mail keeps there. - It counts a subfolder it cannot read as an error. The mailbox then shows its number of errors.
- It adds the messages in the alphabetical order of their paths.
- It does not follow a symbolic link that leads out of the folder.
- It reads the files one by one, so a large folder does not fill the memory.
A folder with no .eml or .emlx file is refused with an error, and so is a folder with more than
500,000 of them. Split a larger folder into several folders and open each one.
How is the imported copy built?
The import writes each message into imports/<mailbox id>.mbox in the
app data folder. Each message starts with a standard
From envelope line:
| Part of the envelope | Value |
|---|---|
| Sender | The address of the sender, or MAILER-DAEMON when the message has none |
| Date | The Date header of the message, or the modification date of the file when the header is missing |
The import follows the mboxrd convention: it adds a > in front of each body line that starts with From .
The app removes that > again when it shows the message, so the text you read is the original
one. The copy belongs to the app, and you never need to open or edit it.
How does Mbox Viewer notice that the source changed?
The app records a signature of the source when it imports it. It compares the signature of a
.eml or .emlx file at every start, at every opening and each time you read a message. It checks
a folder in the background after each start and each opening. A search checks the folder again at
most once a minute.
| Source | Signature |
|---|---|
.eml or .emlx file |
The size and the modification date of the file |
| Folder | The number of .eml and .emlx files, their total size and the newest modification date among them |
When the signature differs, the mailbox shows File changed. Opening the folder again imports it again at once. Otherwise, choose Reindex in the mailbox menu to import the source again and rebuild the index. A folder that no longer holds any mail file shows an error instead. Your tags and virtual folders stay on their messages, because they are tied to the Message-ID. When the file or folder is gone, the mailbox shows File not found.
What happens when I remove the mailbox?
Remove from list deletes the index and the imported copy in imports. Your .eml and .emlx
files and their folder stay on disk. Opening the same source again imports it again.
What are the limits?
| Item | Limit |
|---|---|
| Mail files in one folder, subfolders included | 500,000 |
| Extensions read inside a folder | .eml and .emlx |
| Symbolic links leading out of the folder | Not followed |
| Disk space of the imported copy | About the total size of the mail files |
| Flags and colors set in Apple Mail | Not read |
The other limits of a mailbox, such as the 64 MiB parsed per message, are listed in Limits and known issues.
Frequently asked questions
Which files can Mbox Viewer open?
Mbox Viewer opens .mbox and .mbx files, single .eml and .emlx files, and folders that contain .eml or .emlx files. An .eml file, an .emlx file or a folder is first imported into an mbox copy, then indexed like any mbox file.
Does Mbox Viewer modify my .eml files?
No. The app only reads the .eml and .emlx files and the folders that hold them. It writes the imported copy to the imports folder of its app data folder.
Why does an imported folder use disk space in the app data folder?
The import is a full copy of the messages in mbox format. The app stores it as imports/<mailbox id>.mbox. It takes about as much space as the mail files themselves, and the search index comes on top of it. A reindex writes the new copy next to the old one, so it needs about twice the size of the source until it ends.
Which files inside a folder are imported?
Every file whose name ends in .eml or .emlx is imported, in the folder and in all its subfolders. Hidden files and folders are skipped, and so are files with any other extension. The messages are added in the order of their paths.
Why is my folder refused?
The folder contains no .eml or .emlx file, or it contains more than 500,000 of them. In both cases nothing is imported, and the app shows an error that names the reason.
What happens when I add messages to the folder later?
The mailbox shows File changed once the app has checked the folder again. Mbox Viewer compares the number of mail files, their total size and the newest modification date. Choose Reindex to import the folder again and search the new messages.
Are symbolic links followed during an import?
Not when they lead out of the folder. A symbolic link that points outside the folder you opened is not followed, so the import never reads files from elsewhere on the disk.
Do my tags survive a new import?
Yes. As in an mbox file, tags and virtual folders are tied to the Message-ID of each message. A message keeps its tags when the folder is imported again.
Which date does a message without a Date header get?
It gets the modification date of its file. The import writes that date in the envelope line of the message, and the index uses it for sorting and for before: and after:.
Can an AI agent search an imported folder?
Yes. An imported source is a regular mailbox, so you can share it with the MCP server like any other. The agent sees it under the name shown in the sidebar.
Does Remove from list delete my .eml files?
No. Remove from list deletes the index and the imported copy in imports. The .eml and .emlx files and their folder stay where they are.