Skip to content
Mbox Viewer Pro

mboxShell

The free terminal tool behind Mbox Viewer. Open, search and export MBOX files of any size — right from your shell, on Linux, macOS, FreeBSD and Windows.

Latest v1.4.2 Free & open source Written in Rust MIT
mboxshell
mboxShell running in a terminal, showing an MBOX archive with its message list, folders and reading pane.

A full MBOX toolkit in your terminal

Everything you need to work with huge email archives — reading, searching, threading and exporting — with no GUI and no cloud.

Any file size

A streaming parser with a 1 MB buffer opens 50 GB+ Gmail Takeout backups while keeping RAM around 500 MB.

Sub-second re-opens

A persistent binary index — verified with SHA-256 — reopens even the largest archive in under a second.

Field-based search

Filter with from:, subject:, date:, body:, has:attachment and label:, plus exact phrases and an OR that groups alternatives: a OR b c reads as (a OR b) AND c — in the TUI or from the command line. F1 shows the full syntax inside the app.

Gmail labels & Google Groups

Detects X-Gmail-Labels and turns them into virtual folders you can browse and filter by. In a Google Takeout archive, each Groups mailbox appears under its own group name.

Conversation threading

Groups related messages into conversations with the classic JWZ threading algorithm, using Google's own conversation id (X-GM-THRID) when the mailbox carries one.

Export anywhere

Save messages as MBOX, Maildir, EML, CSV, TXT or HTML, and extract attachments individually or in bulk. HTML pages carry the message's inline images, so they show up with nothing alongside.

Merge & dedupe

Combine several MBOX files into one, with optional deduplication so nothing is imported twice.

Full terminal UI

A ratatui-based TUI with three layout modes, vi-style navigation, dark, light and no-color themes, a cursor that screen readers can follow, and shell completions for bash, zsh, fish, PowerShell and elvish.

Cross-platform & bilingual

A single ~5 MB binary with no runtime dependencies. Runs on Linux, macOS, FreeBSD and Windows, with an English/Spanish interface.

What's new

The three most recent releases. The latest, v1.4.2, shipped on November 16, 2026.

v1.4.2

November 16, 2026

A File column in the CSV export

  • export -f csv --dirname seq-no (or seq-no0) adds a last column, File, with the name that export -f html, eml or txt gives the same message: 0007 goes with 0007.html, 0007.eml and the attachment folder 0007/. Scripts can match each row to its file instead of listing the folder. The other columns keep their positions, --seq-width applies, and with --query the numbers still count the whole mailbox. With the default date-and-subject names the CSV is unchanged.
  • Dependencies updated to their latest compatible versions (clap 4.6, regex 1.13, rayon 1.12 and others). It still builds with Rust 1.88, cargo audit reports no known vulnerabilities, and the index stays at v7, so nothing is rebuilt. 1 new test (371 in total).
Release notes v1.4.2

v1.4.1

November 14, 2026

Security update of two dependencies

  • ammonia 4.2.5, the library that cleans the HTML of messages for HTML exports and the external view, fixes a cross-site scripting flaw through embedded SVG and MathML (RUSTSEC-2026-0533); rustix 1.1.6 fixes RUSTSEC-2026-0486. Nothing else changes: same behaviour, and the index stays at v7, so nothing is rebuilt.
Release notes v1.4.1

v1.4.0

November 12, 2026

A security, stability and speed review

  • An index that arrives together with a mailbox is no longer trusted. Every index is now signed with a key private to your user account and readable only by you, so one that came in an archive or a shared folder can no longer fake senders and subjects or hide messages: it is rebuilt from the mailbox. Existing indexes are rebuilt once (index format v7).
  • HTML exports: the block on remote images could be bypassed and no longer can, and exported pages carry a Content-Security-Policy. A single hostile message can no longer freeze an export or the interface, and file names taken from messages are safer on every system.
  • Fixes: attachments skipped files the index had not flagged (a PDF sent as the whole message, a calendar invite); mailboxes with an unusual From line were read as one single message; export --qp corrupted messages with mixed line endings; in the interface, the end of very long messages could not be read and threads deeper than 100 replies were cut into pieces; closing the terminal window left it in raw mode. The Linux binaries run again on Debian 12, Ubuntu 22.04 and older systems: they needed glibc 2.39 and now need 2.17.
  • Faster: on an 11.8 GB mailbox with 400,000 messages, full-text search goes from 23.4 s to 3.5 s, indexing from 8.6 s to 6.7 s and attachments from 75 s to 46 s. Exporting the marked messages from the interface now runs in the background, with Esc to cancel. Building from source needs Rust 1.88. 40 new tests (370 total).
Release notes v1.4.0
Read the full changelog

One command away

mboxshell
$ mboxshell archive.mbox
# Open the interactive terminal UI
$ mboxshell search archive.mbox "from:jane has:attachment"
# Search straight from the command line
$ mboxshell export archive.mbox -f eml -o out/
# Export messages to MBOX, Maildir, EML, CSV, TXT or HTML
$ mboxshell merge a.mbox b.mbox -o all.mbox --source-header
# Merge files — duplicates removed by default (--no-dedup to keep them), noting which mailbox each message came from
$ mboxshell attachments archive.mbox -o files/
# Extract every attachment at once

Install it

Install it with your package manager, or download a pre-built binary for Linux, macOS, FreeBSD or Windows from the releases page:

$ brew install dcarrero/tap/mboxshell  # macOS / Linux
$ scoop bucket add dcarrero https://github.com/dcarrero/scoop-bucket
$ scoop install dcarrero/mboxshell     # Windows
$ cargo install mboxshell              # crates.io
$ nix-shell -p mboxshell               # Nix / NixOS
$ yay -S mboxshell                     # Arch Linux (AUR)

The open-source engine behind Mbox Viewer

Mbox Viewer for Mac, Windows and Linux grew out of mboxShell. The app wraps the same idea — reading MBOX files of any size, fully offline — in a polished native interface with search, labels, threading and EML support. Prefer the terminal? mboxShell is free and MIT-licensed.

Or download it directly from our site

github.com/dcarrero/mboxshell