Remembers your mail (like an elephant 👀). Mailophant keeps your Proton Mail exports and old Outlook files in one local library, where you can read, search, tag and archive them.
Mail piles up in places you no longer use. A Proton account gets exported every
few months, a work address ends with the job, and a .pst file from 2015 sits
on an old drive. Mailophant puts all of them into one library and shows them
like a normal mail client: sources on the left, then folders, the message list
and the reader.
It runs on your own machine. The server listens on 127.0.0.1 only, nothing is
uploaded, and your exported mail files are only read. Mailophant writes to its
own archives, and to an Outlook import when you run the duplicate cleanup.
A library holds any number of sources: Proton accounts (the folder the export
tool writes to), single Proton export folders and imported Outlook .pst or
.ost files. The ∑ view shows them as one mailbox. If the same mail turns up in
several backups, it appears once with a "2 sources" badge, and the reader shows
where each copy lives and lets you switch between them.
New mail comes straight from Proton. Mailophant runs the official Proton Mail Export CLI for you, with 2FA and two-password mode. Passwords are never stored and are hidden in the log. Mails that did not change since the last fetch are hardlinked to the previous export, so a new fetch only costs the space of new mail.
You can create your own archives with nested folders, rename and reorder them by drag and drop, and move or copy mails into them one at a time or in a batch.
Give a Proton account a target archive and Mailophant will look for mails that disappeared online after each fetch. They are copied into the archive's "Unsorted" folder before the old exports are deleted. If an unusually large share of mail goes missing at once, it stops and asks first. An original is removed only once its copy is complete, and every write goes through a temp file and an atomic rename, so hardlinked exports never change under you.
![]() Archive: your own folders, sorted by drag and drop |
![]() Settings: icons, order and the target archive per source |
Full-text search covers subjects, senders and recipients across every source, and it handles umlauts and other non-ASCII letters. You can search one folder, one tag or all mail.
Stars and coloured tags are stored per mail, keyed by its Message-ID. They survive a new fetch or a rebuilt index and show up on every copy of the mail in every source. Press s to star the open mail.
![]() Search: one query over all sources |
![]() Tags: filter by tag in the sidebar |
PDFs, images and MP3 files open in a preview inside the app, and a button next to each attachment downloads it. HTML mail shows its inline images.
HTML mail is rendered in a sandboxed frame with a strict Content Security Policy. Scripts do not run and remote images are not loaded, so tracking pixels never report back.
An Outlook import often repeats mail you already have from Proton. The cleanup replaces those copies with hardlinks, so they stay visible but take no extra space, or deletes them. You see a preview first, confirm, and get a log file for each run.
Mailophant follows the system appearance or a setting of your choice. It speaks English and German and switches without a restart. You can move through the list with j and k or the arrow keys. On a narrow window the panes stack, and a swipe from the edge or Esc takes you back.
![]() Dark: follows the system or the setting |
![]() Narrow: list |
![]() Narrow: reader |
git clone <repo-url> mailophant
cd mailophant
./start.shOn the first run start.sh installs the Electron dependencies and opens the
app. The app then looks for Python 3.10 or newer, creates a virtual environment
and installs Outlook support (libpff-python) into it.
Choose a folder for your library, or create a new one, and add your first source with +.
The core of Mailophant is a Python server that needs nothing beyond the standard library. You can run it without Electron and use any browser:
./start.sh --server [--port 8025] [LIBRARY_DIR]
# or
python3 -m mailviewer [LIBRARY_DIR] --port 8025Then open http://127.0.0.1:8025/.
| Feature | Requirement |
|---|---|
| Fetch from Proton | Proton Mail Export CLI. Settings → Proton fetch → Install CLI downloads it from proton.me into Mailophant's data folder (the Flatpak takes the pinned GitHub release instead and checks its SHA-256). You can also set its path in the settings, pass --cli PATH, or set PROTON_EXPORT_CLI. |
Import Outlook .pst/.ost |
Python module pypff (pip install libpff-python). The desktop app installs it for you. |
Pushing a tag like v0.2.0 builds the installers for Linux (AppImage and
Flatpak), macOS (arm64 and x64) and Windows on GitHub Actions and attaches them
to a release of that tag. Each tag is also published to the Flatpak repo behind
the install page, which keeps
the app up to date:
flatpak install --user https://developer-simon.github.io/mailophant/mailophant.flatpakrefPre-release tags go to the beta branch (mailophant-beta.flatpakref). The
Flatpak bundle on the release page installs with
flatpak install --user Mailophant-<version>-x86_64-full.flatpak, but doesn't
update itself and needs the Flathub remote for its runtime.
The desktop app can be built as an AppImage (Linux), a dmg (macOS) or an NSIS installer (Windows). The slim variant uses the system Python. The full variant ships its own interpreter with Outlook support included.
cd electron
npm install
npm run dist:slim
npm run build:runtime && npm run dist:fullelectron/README.md has the details on the runtime, the icons and the smoke test.
A library is a plain folder. Proton exports stay where they are and are referenced by their path.
| Path | Contents | Back up? |
|---|---|---|
library.json |
Sources and settings | yes |
sources/ |
Imported Outlook files and your archives | yes |
icons/ |
Source icons | yes |
tags.db |
Stars and tags | yes |
archive.db |
Search index, rebuilt from the sources when missing | no |
# Python server and web UI
python3 -m unittest discover tests
# Electron shell
cd electron && npm testThe screenshots in docs/images/ come from a demo library with invented
mails. To take them again:
cd scripts/docs
npm install && npx playwright install chromium
node screenshots.mjs| Folder | Contents |
|---|---|
mailviewer/ |
Python server: library, SQLite index, archives, Proton fetch, Outlook import |
static/ |
Web UI in plain HTML, CSS and JavaScript, plus the language files |
electron/ |
Desktop shell: finds Python, sets up the venv, builds the packages |
scripts/docs/ |
Demo library and screenshot script |
tests/ |
Python tests |
Much of the code was written with an AI coding assistant. Pull requests must say which AI tools, if any, helped. Details in AI-DISCLAIMER.md.
MIT. Mailophant is not affiliated with Proton AG or Microsoft.









