Postbox (postbox.scheuber.dev) is an open-source, 100% client-side, zero-upload mail archive viewer built with React, TypeScript, and Vite. Inspect, search, and export emails and attachments from .pst, .ost, .msg, .eml, and .mbox files directly inside browser RAM without ever sending data to a server.
- Strict Zero-Upload Architecture: All parsing, indexing, HTML sanitization, and ZIP/EML generation run locally inside a browser Web Worker. Nothing leaves your machine.
- Broad Format Support (40 GB+ Ready):
.pst&.ost(Outlook Personal & Offline Data Files) via a 64-bitBigIntlazy B-tree engine backed by 64 KBFile.slice()blocks and a bounded 2,048-block (~128 MB) LRU cache—capable of opening 40 GB+ archives with flat RAM usage..msg(Outlook Message items) via@kenjiuno/msgreaderwith full MAPI raw property extraction..eml&.mbox(RFC 5322 & Unix mailbox archives) viapostal-mimewith streaming 4 MB.mboxboundary scanning and lazy body loading.
- XSS & Privacy Protection:
- Sanitizes HTML email bodies with
DOMPurifyand renders inside<iframe sandbox="allow-same-origin">. - Resolves inline
cid:attachments locally viaBlobURLs while blocking externalhttp:///https://images and tracking pixels by default (with a user-togglable banner).
- Sanitizes HTML email bodies with
- Three-Pane Mail Client:
- Folder Tree: Collapsible folder hierarchy with unread/total counts, folder search filter, and a virtual
Imported Messagesbucket for standalone.msg/.emldrops. - Virtualized Message List: Fixed-height DOM virtualization smoothly handles 100,000+ messages with streamed 500-header batching, Current Folder / All Folders search scope toggle, folder path badges, streaming "Search inside email bodies" with live progress & Cancel, date-range and attachment filters, keyboard navigation (
Up/Down,Esc), and folder.zipexport. - Reading Pane: Full header inspection + expandable raw internet headers, one-click attachment downloads & Download All as ZIP, HTML / Plain Text / Raw Source & MAPI Properties tabs, Print / Save as PDF, and Export as .eml.
- Folder Tree: Collapsible folder hierarchy with unread/total counts, folder search filter, and a virtual
- Self-Contained & Air-Gapped Bundle: All fonts (
@fontsource-variable/inter,@fontsource-variable/jetbrains-mono) and icons (lucide-react) are bundled locally—zero external CDNs or analytics.
Postbox enforces an air-gapped Content Security Policy both in index.html and as an HTTP response header in nginx.conf:
default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; connect-src 'none'; font-src 'self' data:; object-src 'none'; base-uri 'none'; frame-ancestors 'none';
Because connect-src 'none' is active, the browser engine physically blocks fetch, XMLHttpRequest, WebSocket, and sendBeacon requests—verifiable at any time via DevTools Network & Security panels or the 100% Local Processing — Zero Network Connections badge in the top bar.
Clicking Clear Session / Unload File (or closing the tab) immediately terminates the Web Worker, clears all caches, and revokes every generated Blob URL.
npm install
npm run devRun tests and production build verification:
npm test
npm run buildRun Postbox locally or on your own server with Docker Compose:
docker compose up -d --buildThen open http://localhost:8080.
Or build and run the container directly:
docker build -t postbox .
docker run -d --name postbox -p 8080:80 postbox