Repository navigation
mboxShell v1.4.0
mboxShell v1.4.0
Fast terminal viewer for MBOX files of any size.
A security, stability and performance review of the whole program.
What's new
- Security: an index that arrives with a mailbox is no longer trusted. Every index is signed with a key private to your user account and is readable only by its owner; one that came in an archive or a shared folder could fake senders and subjects or hide messages, and is now rebuilt from the mailbox instead. A planted index that links to
/dev/zeroor is a named pipe no longer eats the memory or hangs the program. - Security: the remote-image block in HTML exports could be bypassed (
<img src="h	ttp://…">). Without--allow-remote-imagesonly images embedded from the message survive, and exported pages carry a Content-Security-Policy. - Security: one hostile message could freeze an export or the TUI (deeply nested HTML, a header of thousands of unclosed encoded-words). File names taken from messages are safer too.
- Fix:
attachmentsskipped attachments the index had not flagged, such as a PDF sent as the whole message or a calendar invite, and reported success when a file could not be written. - Fix: mailboxes with an unusual
Fromline were read as one single message;export -f eml --qpcorrupted messages with mixed line endings; a file name that is not UTF-8 andsearch … | headboth ended in a crash. - Fix: in the TUI, the end of a long message could not be read (past row 65 535), threads deeper than 100 replies were cut into pieces, and closing the terminal window left it in raw mode.
- Feature: exporting the marked messages from the TUI runs in the background, with progress and
Escto cancel. - Performance, on an 11.8 GB mailbox with 400,000 messages: full-text search 23.4 s → 3.5 s, indexing 8.6 s → 6.7 s,
attachments75 s → 46 s. - Fix: the Linux binaries did not start on Debian 12, Ubuntu 22.04 or anything older (
GLIBC_2.39 not found; v1.3.0 had the same problem). They are now built for glibc 2.17 (x86_64 and ARM64) and 2.31 (RISC-V). - The index format changes (v7): existing indexes are rebuilt automatically the first time a mailbox is opened.
- Building from source now needs Rust 1.88, and a C compiler on Apple Silicon and Linux ARM.
40 new tests (370 total). Full details in the changelog · en español.
Downloads
| Platform | Binary |
|---|---|
| Linux x86_64 | mboxshell-linux-x86_64 |
| Linux ARM64 | mboxshell-linux-aarch64 |
| Linux RISC-V 64 | mboxshell-linux-riscv64 |
| FreeBSD x86_64 | mboxshell-freebsd-x86_64 |
| macOS Intel | mboxshell-macos-x86_64 |
| macOS Apple Silicon | mboxshell-macos-aarch64 |
| Windows x86_64 | mboxshell-windows-x86_64.exe |
| Windows ARM64 | mboxshell-windows-arm64.exe |
Installation
# Homebrew (macOS / Linux)
brew install dcarrero/tap/mboxshell
# Scoop (Windows)
scoop bucket add dcarrero https://github.com/dcarrero/scoop-bucket
scoop install dcarrero/mboxshell
# Manual (Linux / macOS)
chmod +x mboxshell-*
sudo mv mboxshell-* /usr/local/bin/mboxshell
# Or build from source (crates.io)
cargo install mboxshellWhat's included
- Streaming MBOX parser (handles 50GB+ files)
- Persistent binary index for instant re-opens
- Gmail labels support (X-Gmail-Labels)
- Advanced search (from:, subject:, date:, body:, has:attachment, etc.)
- Conversation threading (JWZ algorithm)
- Export to EML, TXT, CSV, HTML, a new MBOX or a Maildir, with attachment extraction
- Full terminal UI with vi-style navigation
- Bilingual interface (English/Spanish)