Skip to main content

☕ EspressoMail

A fast, declarative, multi-account terminal email client built on the Espresso TUI framework (The Elm Architecture).

Python 3.10+ License: MIT Framework: Espresso TUI Architecture: TEA

          (  )   (   )  )
           ) (   )  (  (
           ( )  (    ) )
         ___________________
        <___________________> ___
        |  ╔═════════════╗  |/ _ \
        |  ║ ✉  ESPRESSO ║  | | | |
        |  ║ ╲  ╱  MAIL  ║  |_| |_|
        |  ╚══╲╱═════════╝  |\___/
        |___________________|
         \_________________/

✨ Highlights

🖥️ UI & Interaction

  • Responsive 3-Pane Layout:
    1. Mailboxes Pane: Unified Mailboxes (Unified Inbox, All Starred, All Drafts, All Sent, All Archive, All Trash) plus per-account IMAP folder trees with live unread/total badges.
    2. Message & Thread List: Conversation threading (├, ╰─) with message counts ([3]), unread indicators (●), stars (★), attachment icons (📎), and PGP badges (🔒).
    3. Reading Pane: Formatted headers, color-coded multi-depth reply quote bars (│), syntax-highlighted code blocks, HTML-to-terminal conversion, PGP security banners, and inline image rendering.
  • Animated Startup Splash Screen: Steaming espresso cup art, TrueColor linear gradients, progress bar, and instant key/mouse skip.
  • Interactive Drop-Down Menus: Full top menu bar (File, Mail, View, Tools, Help) accessible via mouse click/hover or F10 / m.
  • Full Mouse & Keyboard Support: Click panes to focus, click folders/messages to open, scroll any pane with the mouse wheel, or drive the entire client via Vim/Mutt-inspired keyboard shortcuts and Ctrl+P Command Palette.
  • Terminal Image Rendering: View inline image attachments directly in the reading pane using chafa, DEC Sixel (img2sixel or native Sixel encoder), Kitty Graphics Protocol, 24-bit Unicode Half-Blocks (▀), or Braille (⣿) — cycleable on the fly with i.
  • Theme Engine: Swap between 6 built-in TrueColor themes at runtime (T): Espresso Dark, Catppuccin Mocha, Dracula, Nord Arctic, Gruvbox Dark, and Solarized Light.

📬 Core Email & Advanced Features

  • Multi-Account IMAP & SMTP: Connect multiple work and personal accounts simultaneously over SSL/TLS or STARTTLS.
  • Guided Onboarding Wizard (O): Interactive 3-step setup flow with Custom IMAP / SMTP Server as the default first option alongside presets for Fastmail, Gmail, Outlook / Microsoft 365, ProtonMail Bridge, and iCloud, validating IMAP and SMTP credentials before completing setup.
  • Account Settings Editor (A): Modify existing account settings at any time (password, login username, IMAP/SMTP hosts, ports, SSL/TLS or STARTTLS security, display name, signature, or account deletion) with live connection testing (Ctrl+T).
  • Local SQLite Store & Offline Access: WAL-mode SQLite database caching accounts, folders, messages, MIME attachments, drafts, contacts, and Sieve scripts.
  • Instant Fuzzy Search (/): Typo-tolerant multi-field fuzzy ranking combined with structured search operators (from:, to:, subject:, folder:, has:attachment, is:unread, is:starred, is:pgp).
  • ManageSieve Filter Manager (F): Visual rule builder, RFC 5228 Sieve compiler, static syntax validator, local rule runner, and RFC 5804 ManageSieve uploader.
  • GPG / OpenPGP Integration (G): Cleartext signing, signature verification, recipient encryption, decryption, and Ed25519 key generation.

🚀 Installation

Standalone Binaries (Linux & Windows)

Pre-built standalone single-binary executables with zero external dependencies are attached to every GitHub Release:

  • Linux x86_64: espressomail-linux-x86_64
  • Windows x86_64: espressomail-windows-x86_64.exe

Native Linux Packages (.deb, .rpm, Arch Linux)

Pre-built native packages are available on the Releases page:

# Debian / Ubuntu / Mint (.deb)
sudo dpkg -i espressomail_<version>_amd64.deb

# Fedora / RHEL / openSUSE (.rpm)
sudo rpm -i espressomail-<version>-1.x86_64.rpm

# Arch Linux (.pkg.tar.zst)
sudo pacman -U espressomail-<version>-1-x86_64.pkg.tar.zst

From PyPI

pip install espressomail

Or install in an isolated environment with pipx:

pipx install espressomail

Optional Image Dependencies

For additional PNG/JPEG decoding when chafa is not installed on your system:

pip install "espressomail[images]"

From Source (Development)

git clone https://github.com/kimusan/EspressoMail.git
cd EspressoMail
pip install -e ".[dev,images]"

🛠️ Quick Start & CLI Usage

# Launch EspressoMail (starts onboarding wizard on first run)
espressomail

# Launch with a specific color theme and Sixel image rendering, skipping the splash screen
espressomail --no-splash --theme catppuccin --image-backend sixel

# Use a custom SQLite database file path
espressomail --db ~/mail/custom_store.db

⌨️ Keyboard & Mouse Shortcuts

Key / Action Description
Tab / Shift+Tab Cycle focus between Mailboxes, Message List, and Reading Pane
j / k / ↑ / ↓ Navigate folders, message rows, or scroll the reading pane
Enter / Space Open selected folder, read message, or edit draft in composer
F10 / m Open top interactive Drop-Down Menu Bar
Ctrl+P Open fuzzy Command Palette
c Compose new email message
r / R Reply to sender / Reply to all recipients
f Forward selected message
s Toggle Star / Flag (★) on selected message
u Toggle Read / Unread (●) status
e Archive selected message (or Edit Account Settings when Mailboxes pane is focused)
d / Delete Move message to Trash (or permanently delete if already in Trash)
X Empty Trash permanently
w Download / save incoming attachments from selected email to disk
/ Open Instant Fuzzy Search across local SQLite database
t Toggle conversation threading view (Threaded vs Flat)
T Cycle active color scheme (Espresso, Catppuccin, Dracula, Nord, Gruvbox, Solarized)
i Cycle terminal image renderer (Auto, Chafa, Sixel, Kitty, Half-Block, Braille, Off)
H Toggle full RFC 5322 headers in Reading Pane
U Jump directly to Unified Inbox
B Open Local Address Book & Contacts Manager
F Open Sieve Filter Rules & RFC 5228 Script Manager
G Open GPG / OpenPGP Keyring & Security Manager
A Edit Existing Account Settings (Password, IMAP/SMTP hosts, ports, TLS)
O Launch Guided Account Onboarding Wizard (Add New Account)
S Synchronize all enabled IMAP accounts
? Show Keyboard & Mouse Shortcuts Help Modal
q Quit EspressoMail

Inside the Compose Modal (c / r / f)

  • Tab / Shift+Tab: Move between From account selector, To, Cc, Subject, and Body editor
  • Ctrl+A: Open interactive FilePicker to attach files
  • Ctrl+G: Toggle OpenPGP Cleartext Signature ([x] PGP Sign)
  • Ctrl+E: Toggle OpenPGP Encryption ([x] PGP Encrypt)
  • Ctrl+S: Save message to Drafts
  • F5 / Ctrl+X: Send message via SMTP (and archive to Sent)

📚 Documentation

  • Architecture & TEA Design: How EspressoMail structures state, commands, SQLite persistence, JWZ threading, and protocol clients.
  • User Guide: Detailed walkthrough of account onboarding, fuzzy search operators, terminal image rendering (chafa / Sixel), Sieve filters, and PGP encryption.
  • Contributing Guide: Development workflow, running unit tests, and Conventional Commits guidelines.

🧪 Running Tests

python3 -m unittest discover -s tests -v

📦 Release Automation

EspressoMail includes an automated release script:

# Dry run preflight checks and version calculation
python3 scripts/release.py patch --dry-run

# Release with title summary and full markdown release notes
python3 scripts/release.py minor \
    -m "Release v0.2.0: Contacts & Filter Enhancements" \
    -n "### Highlights\n- CardDAV address book sync\n- ManageSieve live filter editor"

# Release using an external notes markdown file (or stdin pipe)
python3 scripts/release.py 0.2.0 --notes-file release_notes.md
cat release_notes.md | python3 scripts/release.py patch --notes-file -

Pushing a tag vX.Y.Z triggers the GitHub Actions release workflow:

  1. Builds sdist and wheel and publishes to PyPI.
  2. Compiles standalone PyInstaller single-binary executables for Linux (x86_64) and Windows (x86_64.exe).
  3. Generates native Linux packages: Debian (.deb), Red Hat / Fedora (.rpm), and Arch Linux (.pkg.tar.zst).
  4. Generates SHA256 checksums and publishes the GitHub Release with all artifacts attached.

📄 License

MIT License. Copyright (c) 2026 Kim Schulz. See LICENSE for details.

Metadata

Release files for espressomail 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for espressomail 0.1.0
File Size Uploaded Provenance Actions
espressomail-0.1.0.tar.gz 143.2 kB With provenance Details for espressomail-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for espressomail 0.1.0
File Interpreter ABI Platform Actions
espressomail-0.1.0-py3-none-any.whl Python 3 none any Details for espressomail-0.1.0-py3-none-any.whl

Total release size: 268.1 kB

Release files / espressomail-0.1.0.tar.gz

Download URL espressomail-0.1.0.tar.gz
Size 143.2 kB
Tags Source
SHA-256 checksum
How to use checksums
485cd97c5021d5963602a4748c2fd1e1674fdbe7e76c9585c53355bcd23c1add
BLAKE2b-256 checksum
How to use checksums
764d69aa0b9efb5eeca4ce26e51c58bde679a0e07690be0f938ae7b1e64455a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / espressomail-0.1.0-py3-none-any.whl

Download URL espressomail-0.1.0-py3-none-any.whl
Size 124.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bf1743cf8cfd362b962cbd99cde072bf0fe1890f82b4331762e306c18b09efd
BLAKE2b-256 checksum
How to use checksums
a539c55b0808517c929ed7927fdaa23291d984e6c53dc4dd750fe49f92fadec9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Security for espressomail 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for espressomail-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page