Skip to content
MAILRIVA

Open an email backup — EML, MBOX, ZIP and encrypted archives

Your backup is a set of ordinary files on your computer. Here you see where Mailriva puts them, how to open and search it in Mailriva itself and how to import a whole backup into Apple Mail or Thunderbird.

Published: Updated:

In short

  • Mailriva creates one folder per mailbox and format: "backup-…-eml" or "backup-…-mbox", for archives "archive-…-eml" or "archive-…-mbox". Each mail folder becomes a subfolder inside it.
  • The quickest way to open the backup is in Mailriva itself: on the start page choose "Open & Search", or right after the backup "Read & Search" on the result page. Mailriva reads EML, MBOX, MSG and Outlook files, searches them and saves emails as PDF through the print dialog; nothing is uploaded.
  • Without the app, use the online viewer: it opens EML and MBOX files right in your browser, with search and PDF; the file never leaves your computer.
  • EML is one file per email: a double-click opens it in your mail app. To bring in many emails at once, import them into Thunderbird with the free add-on ImportExportTools NG.
  • MBOX is one file per mail folder: Apple Mail imports it via File > Import Mailboxes, Thunderbird via ImportExportTools NG.
  • You unzip a ZIP file with a double-click and decrypt a .mrvault file in Mailriva. Decrypting is always free. If you forgot the password, the recovery code helps, provided you created one when you encrypted. It works only together with the recovery file next to the archive: if you copy the archive, take both files with you.

Where is my backup?

When the job is done, Mailriva shows the location under "Saved to"; "Open folder" takes you straight there, and "Read & Search" opens the backup right in Mailriva. Inside the folder you chose as destination, each mailbox gets its own subfolder per format: "backup-" or "archive-", then your address and finally the format, for example backup-anna@example.com-eml or backup-anna@example.com-mbox. That keeps EML and MBOX of the same address apart. Mailriva names the folder before the start, too, under "Will be saved to".

  • EML: Each mail folder becomes a subfolder; the inbox is usually called INBOX, and nested folders stay nested. Inside, each email is a file such as 1234.eml. The number is the email's number on the server, not its subject.
  • MBOX: Each mail folder is one file such as INBOX.mbox.
  • Hidden files such as .manifest.json belong to Mailriva. Mailriva uses them to check the copy and to see on the next run what is already backed up. Leave them in place if you want to keep backing up into the same folder.
  • Older folders: Folders from earlier versions are still called backup-… without -eml or -mbox at the end. Mailriva only carries on with such a folder if the mailbox and format match the new run and no other format is inside; otherwise it creates a new folder with the ending.
If you saved the backup as a ZIP file or encrypted the archive, a file such as backup-….zip or archive-….mrvault sits next to the folder. The normal folder stays where it is at first. After encrypting, Mailriva opens the archive once and compares every file with the folder. Only if this check passes does the finished page offer “Delete unencrypted folder”; after a confirmation the folder is deleted permanently, not moved to the trash. While the unencrypted folder is still next to the archive, Mailriva asks again when you quit, but only as long as the app has been running since the job. The .mrvault file also opens without Mailriva with the free tool age. If you had a recovery code created, a recovery file archive-….mrvault.recovery sits next to it as well; it belongs to the archive and stays there. If you copy the archive elsewhere, take both files with you.
Done: Mailriva shows where the backup is saved.

Open and search in Mailriva

Mailriva can read backups and mail files itself. On the start page, choose the tile "Open & Search"; after a backup or archive on your computer, the "Read & Search" button on the result page takes you there. Both open a window of their own that you can resize freely; when you are done, you simply close it and Mailriva stays open. You do not have to import anything, and the emails never leave your computer.

  • Open: Choose "Open folder" and point to your backup folder, for example backup-anna@example.com-eml, or drag files and folders onto the window. Mailriva reads EML, MBOX, MSG and Outlook mailboxes (PST, OST, OLM); for EML folders the subfolders are kept.
  • Read and search: The list can be sorted. You search by sender, recipient, subject and date, and in the message text as long as the opened files together stay under about 300 MB. You save attachments one by one, and you can show the source of an email.
  • Save as PDF: One email or several marked ones (up to 50 per PDF) open in a print window; there you click "Print / Save as PDF". In your system's print dialog you choose "Save as PDF", on a Mac "Save as PDF" in the "PDF" menu.
  • ZIP and .mrvault: If you choose a ZIP or .mrvault file or drag it onto the window, Mailriva asks first. Mailriva unpacks a ZIP backup of EML or MBOX files into a new folder next to the ZIP file and opens it. For a .mrvault file, Mailriva asks for the password (or the recovery code), decrypts into a new folder next to the archive and opens it. Archives inside a folder you open are listed in the card "Archives in this folder" and are unpacked or decrypted only when you click "Open". The new folder is named like the archive (if the name is taken, " (2)" is added).
  • Large files: For opening, there is no limit of 1 GB per file, unlike in the online viewer. Very large files, from 4 GB, take a while; Mailriva points that out. Further limits are listed under "What Mailriva cannot do".
The decrypted folder is no longer encrypted, and Mailriva does not delete it by itself. Delete it when you no longer need it.

Open a single email (EML)

Double-click an .eml file and it opens in your default mail app; on a Mac that is usually Apple Mail. On Windows you need a mail app for this, for example the free Thunderbird. Attachments are part of the email and can be saved from there.

Because the files carry numbers instead of subjects, the easiest way to find a particular email is a list: open the folder, for example INBOX, in Mailriva ("Open & Search") or drag the EML files together into the online viewer. Both show every email with subject and sender, you can search them and save single emails as PDF, and the files never leave your computer. For a lasting search, import the folder into a mail app as described below and use its search.

Import a whole backup into Apple Mail (MBOX)

According to Apple, Apple Mail imports files in mbox format. For a backup in EML format, use Thunderbird or open single emails with a double-click. You can check beforehand whether the backup is complete in the online viewer: it shows how many emails an MBOX file holds, and sorted by date you can see the period it covers.

  1. 1

    Start the import

    In Apple Mail, choose File > Import Mailboxes.

  2. 2

    Choose the format

    Select "Files in mbox format" and click Continue.

  3. 3

    Choose the folder

    Go to the folder that contains the .mbox files, i.e. your backup-… or archive-… folder, and select it.

  4. 4

    Find your emails

    The emails appear in a new mailbox called Import in the sidebar. You can search there, drag folders or emails where you want them and delete the Import mailbox afterwards.

Import into Thunderbird (EML and MBOX)

According to Mozilla, Thunderbird's built-in Import Tool brings in profiles, data from other applications and certain files, but it does not mention MBOX or EML files. For those there is the free add-on ImportExportTools NG. It imports MBOX files including their folder structure and EML files, one by one or all files in a directory (version 15.0.3, for Thunderbird 140 to 160). Before importing, it is worth checking in the online viewer whether the backup is complete (number of emails, date range).

  1. 1

    Install the add-on

    In Thunderbird, search the add-ons for "ImportExportTools NG" and add it.

  2. 2

    Pick a local folder

    Right-click "Local Folders" or a folder inside it. The add-on allows MBOX import only there, not directly into an IMAP account.

  3. 3

    Choose the import

    In the ImportExportTools NG menu, choose the matching import: an MBOX file or all EML files in a directory.

  4. 4

    Select your backup

    Select the .mbox file or the EML folder from your backup, for example INBOX. Afterwards you search the emails in Thunderbird like any other mailbox, even offline.

Put emails back into a mailbox

Mailriva copies from mailbox to mailbox, but it does not upload files back into a mailbox. A mail app does that: set up your mailbox in Thunderbird, import the backup into "Local Folders" and drag the folders or emails you want into a folder of your mailbox. Thunderbird then uploads them to the server. Keep an eye on the free storage of your mailbox.

If the old mailbox still exists, there is a more direct way: Mailriva copies all folders from one mailbox to another. More: Migrate emails.

Unzip a ZIP file

On a Mac, a double-click on the .zip file unpacks it. On Windows, right-click it and choose Extract All. You then have the same folder with EML or MBOX files as described above. Or let Mailriva unpack it: if you drag the ZIP file into "Open & Search", Mailriva creates a new folder next to the ZIP file and opens it. Mailriva only unpacks ZIP backups made of EML or MBOX files; it does not unpack MSG, PST, OST or OLM files inside a ZIP file.

Decrypt an encrypted archive (.mrvault)

A .mrvault file uses the standard age format (ChaCha20-Poly1305, password via scrypt). You open it with Mailriva and your password; decrypting is always free, even without a pass. Without Mailriva it opens with the free tool age (age-encryption.org): age -d archive.mrvault > archive.tar.gz, then unpack the tar.gz. Archives from older Mailriva versions (up to beta7) open only in Mailriva. You can also open the .mrvault file in "Open & Search": Mailriva asks for the password, decrypts into a new folder next to the archive and shows it. If you forget the password, the recovery code gets it back (see below).

  1. 1

    Open Settings

    In Mailriva, click Settings in the top right corner.

  2. 2

    Choose the archive

    Under Data, click "Open Encrypted Archive" and select your .mrvault file.

  3. 3

    Enter the password

    Enter the password you set when you created the archive and click Decrypt.

  4. 4

    Choose the output folder

    Mailriva unpacks the backup into the folder you choose. It contains your EML or MBOX files again.

Without the password the archive cannot be opened, and we cannot reset it. The recovery code gets you the password (see below). Keep password and code separate from the archive. The decrypted folder is not encrypted: delete it when you no longer need it.
Decrypt Archive: enter the password and click Decrypt.

Forgot the password? The recovery code

When you encrypt an archive, Mailriva can create a recovery code; the option "Create a recovery code" is on by default. One code, 8 blocks of 4 characters each. It appears once at the end: you can copy it, save it as a text file or print it. Mailriva stores it nowhere.

  • Keep the code apart from the archive, for example printed or in a password manager, not next to the .mrvault file.
  • The recovery file belongs to the archive: next to archive.mrvault there is a small file archive.mrvault.recovery. If you copy the archive to a USB stick, an external drive or the cloud, take both files with you: the archive and the file "archive.mrvault.recovery" next to it. Without it, the code does not help. On its own it reveals nothing, because it cannot be opened without the code.
  • How to get the password back: when you open the archive in Mailriva, choose "Forgot the password? Enter the recovery code" and enter the code; capitals, hyphens and spaces do not matter. Mailriva fills in the password, then you click Decrypt.
  • Not a password: the code is not a password and does not belong in the password field. You enter it through "Forgot the password? Enter the recovery code".
  • New archive, new code: if an archive is created again with the option switched on, it gets a new code. The old recovery file then no longer fits; Mailriva tells you so. The code that belongs to the current version of the archive is the one that counts.

Without the code or without the recovery file, Mailriva cannot recover a forgotten password either. For the technically minded: the recovery file is also an age file. With age -d archive.mrvault.recovery the tool asks for the passphrase; that is the code without hyphens, in capitals. What comes out is a short text that contains the archive's password.

What Mailriva cannot do

Mailriva reads and searches the files you open in "Open & Search". There is no permanent search index across all your backups, and the text search only works while the opened files together stay under about 300 MB; above that you search by sender, recipient, subject and date. A PDF holds at most 50 emails and is created in your system's print dialog. For opening, there is no limit of 1 GB per file, but an opened folder or ZIP file may hold at most 200,000 mail files; for very large EML backups, open the subfolders one by one. Attachments and files can be saved up to about 1 GB each. From an Outlook file (PST, OST or OLM), Mailriva can export contacts, events, tasks and notes in the "Contacts & calendar" view (vCard, CSV, iCalendar, a ZIP of text files); it cannot show them as a calendar or address book or load them into an account. Mailriva cannot load emails from files into a mailbox: a mail app such as Thunderbird does that. Even without the app, the website's online viewer reads files up to 1 GB; it does not open a .mrvault file.

Frequently asked questions

What do I open an EML file with?

The quickest way is in Mailriva itself ("Open & Search") or in the online viewer: drag the file in, read it, save attachments, save it as PDF; the file stays on your computer. Or use a mail app such as Apple Mail or Thunderbird: usually a double-click on the file is enough.

Why are the files called 1234.eml instead of the subject?

The number is the email's unique number on the server. On the next run Mailriva uses it to see which emails are already backed up, so nothing is copied twice.

Can I search my backup?

Yes, right away: in Mailriva under "Open & Search" or in the online viewer (drag the file into your browser, it stays on your computer). Or, after importing it, with the search in Apple Mail or Thunderbird.

EML or MBOX: which is easier to open?

You open EML files one email at a time with a double-click; Thunderbird handles both formats. Apple Mail imports MBOX. Both formats contain the complete email with all attachments.

Do I need Mailriva to open the backup?

Not for EML, MBOX or ZIP. You can, for example, read EML and MBOX files right in your browser with the online viewer. An encrypted .mrvault file is decrypted in Mailriva, always for free, or with the free tool age. The online viewer does not open the .mrvault file itself, only the decrypted EML or MBOX files; Mailriva opens it once you enter the password.

Can Mailriva put a backup back into my mailbox?

No. Thunderbird can: import the backup into "Local Folders" and drag the emails into a folder of your mailbox.

What happens if I forget the password?

If you created a recovery code when you encrypted and kept it, enter it through "Forgot the password? Enter the recovery code" when you open the archive, and Mailriva fills in the password. The code is not a password and does not belong in the password field. The file archive.mrvault.recovery must be next to the archive for that; if you copy the archive, take both files with you. Without the code, the .mrvault file can no longer be opened, and we cannot reset the password either. If the normal folder is still next to it, that folder stays readable.

What is the recovery code?

A code of eight blocks of four characters that Mailriva creates when you encrypt, if you want it, and shows only once. Together with the small file archive.mrvault.recovery next to the archive, it gets a forgotten password back. If you copy the archive to a USB stick, an external drive or the cloud, take both files with you: the archive and the file "archive.mrvault.recovery" next to it. Without it, the code does not help. Keep the code apart from the archive; Mailriva stores it nowhere.

Why does the folder name end in -eml or -mbox?

Each format gets a folder of its own, so EML and MBOX of the same address do not get mixed and another run only continues in the matching folder. Before the start, Mailriva shows the folder under "Will be saved to".

A backup you can open any time

Mailriva saves your mailbox as EML or MBOX on your computer. Free up to 1 GB.