Skip to content

Take your archive on a flash drive ​

A copy of your archive on a flash drive is a second backup. Add the mailarc reader app to the drive, and you can read and search your mail on another computer. The reader app only reads: it cannot change the archive or sync it.

This guide assumes you have an archive already. If not, start with Back up your email.

What you need ​

  • A flash drive or external disk with room for the archive and about 30 MB for the reader app. To see how much room the archive needs, open Statistics in the app and look at On disk, or run mailarc stats ARCHIVE.
  • The drive formatted as exFAT if you want to use it on macOS, Windows and Linux. Use your system's own format (APFS, NTFS or ext4) if you stay on one system.

Do not use FAT32. FAT32 cannot store files larger than 4 GB, and a large archive has bigger files.

Step 1: Stop syncing ​

Copy the archive only while nothing writes to it:

  • Wait until any sync ends, then close the desktop app.
  • Make sure no scheduled mailarc sync runs during the copy.

Step 2: Copy the archive folder ​

Copy the whole archive folder, for example Archive.mailarc, to the drive. Use Finder, File Explorer or your file manager, as for any folder.

Copy the folder as it is. Do not copy single files from inside it, and do not rename or remove anything in it.

Step 3: Check the copy ​

Run mailarc verify on the copy. It reads every stored message, checks it against its fingerprint, and checks the logs. It only reads.

sh
mailarc verify /Volumes/MAILSTICK/Archive.mailarc       # macOS
mailarc verify /media/you/MAILSTICK/Archive.mailarc     # Linux
mailarc verify E:\Archive.mailarc                       # Windows

Exit code 0 means the copy is complete and intact. If it reports a problem, delete the copy on the drive and copy the folder again.

Step 4: Add the reader app ​

Build the reader app in the mailarc source folder:

sh
deno task --config apps/reader/web/deno.json ci
cargo build --release -p mailarc-reader-app

Copy the app to the drive, next to the archive:

  • macOS and Linux: target/release/mailarc-reader
  • Windows: target\release\mailarc-reader.exe

The app is a single file. It needs no other files from the build.

Which computers can run it ​

The app runs only on the kind of system it was built on. An app built on a Mac with Apple silicon runs on Macs with Apple silicon, not on Windows or Linux. To read the drive on several systems, build the app on each one and copy each file to the drive under its own name.

The other computer also needs the system's web view:

  • macOS: built in.
  • Windows: the Microsoft Edge WebView2 Runtime, which current Windows versions include.
  • Linux: WebKitGTK 4.1 and GTK 3. Package names depend on the distribution.

Planned: ready-made packages, including a portable ZIP for Windows and a signed macOS app. Until then, macOS or Windows may warn about an app from an unknown developer when you start it on another computer. This has not been tested yet.

Step 5: Read your mail on another computer ​

  1. Plug in the drive.

  2. Start the reader app from the drive with the archive, in a terminal:

    sh
    /Volumes/MAILSTICK/mailarc-reader --reader /Volumes/MAILSTICK/Archive.mailarc      # macOS
    /media/you/MAILSTICK/mailarc-reader --reader /media/you/MAILSTICK/Archive.mailarc  # Linux
    E:\mailarc-reader.exe --reader E:\Archive.mailarc                                  # Windows

    Without --reader, the app shows its start screen. Choose Open archive… and pick the archive folder on the drive.

The reader app's start screen with Open archive… and a recent archive on the flash drive.

The window shows Read-only. Browse, search, read and export as on your own computer; see The reader app.

The reader app with the archive open. The top bar shows Read-only.

Planned: opening an archive by double-clicking it.

What stays on the other computer ​

  • The reader app remembers the archive in its list of Recent archives. Choose × next to the entry to remove it. The archive itself stays untouched.
  • Searches you save in the reader app stay on that computer. Searches saved in the archive with the desktop app are on the drive and appear under Saved in this archive.
  • The app writes nothing to the drive.

Not tested yet ​

These cases are planned for testing, but not checked yet:

  • Opening an archive made on one system (for example macOS) on another (for example Windows).
  • Opening an archive from a write-protected drive.

Keep the copy up to date ​

The copy does not update itself. After new syncs, replace it:

  1. Stop syncing, as in step 1.
  2. Delete the old archive folder on the drive.
  3. Copy the archive folder again, and run mailarc verify on the new copy.

Not available yet: a command that updates a copy in place.

Take only part of your mail ​

mailarc copy copies the messages a search finds into another archive. Use it for a smaller archive on the drive, for example one year or one project:

sh
mailarc init /Volumes/MAILSTICK/Project.mailarc
mailarc upgrade /Volumes/MAILSTICK/Project.mailarc --to-version 2
mailarc reindex /Volumes/MAILSTICK/Project.mailarc
mailarc copy ~/Mail/Archive.mailarc /Volumes/MAILSTICK/Project.mailarc 'after:2024 before:2025'
  • The messages keep their folders and flags.
  • Run the same copy command again later: it adds new matches and skips messages that are already there.
  • Spam is left out unless the search asks for it with is:spam.
  • Copying message by message is slower than copying the folder.

See Copying messages to another archive.

Keep the drive safe ​

  • The archive is not encrypted. Anyone who finds the drive can read your mail. Use an encrypted drive where you can, for example an encrypted APFS volume on macOS, BitLocker To Go on Windows, or LUKS on Linux. Encrypted drives usually work on only one kind of system.
  • The archive holds no passwords. Nobody can use the drive to sign in to your email account.
  • Eject the drive before you unplug it.

Not available yet: encrypting the archive itself. It is planned for after version 1.