Unix Philosophy Email Client  β€’  v0.6.2

Email client on the Command Line.

A fast, minimalist CLI email client for developers. Connect directly to your email provider with zero cloud relays, pipe stdin into automations, and triage your inbox at terminal speed.

Quick Install
$curl -fsSL https://t3e.dev/install | sh

Power Workflows & Automation

See how developers leverage t3e to build custom email automations and integrations.

CI/CD & Pipelines

Automate Build Alerts

Notify your team automatically when a build fails or a deployment completes. By passing the non-interactive --yes (or -y) flag and piping stdout or log files directly to stdin, you can easily integrate t3e with automated runners like GitHub Actions or GitLab CI.

build-pipeline.sh
# Send build logs only if build fails
$ npm run build > build.log 2>&1 \
  || t3e send \
  --to alerts@company.com \
  --subject "Build Failed" \
  --yes < build.log
System Monitoring

Cron Jobs & Health Reports

Schedule system backups, disk health checks, or database validations using cron, and receive direct reports in your inbox. No heavy setup or specialized tooling requiredβ€”just direct redirection of command output to t3e send.

cronjob.sh
# Send system disk usage report every night
$ df -h | t3e send \
  --to sysadmin@company.com \
  --subject "Disk Space Alert: $(hostname)" \
  --yes
CLI Integration

Piping & Grepping Messages

Extract verification codes, one-time passwords, or specific alerts instantly without opening a browser or full GUI client. Standard output from t3e list and t3e read flows seamlessly into Unix filtering tools.

terminal
# Fetch latest OTP verification code
$ t3e list -n 5 \
  | grep -i "gitlab.*verify" \
  | head -n 1 \
  | awk '{print $1}' \
  | xargs t3e read \
  | grep -oE "[0-9]{6}" \
  | head -n 1
Interactive Triage

Fuzzy Finding with fzf

Combine t3e with the command-line fuzzy finder fzf to build an interactive, keyboard-driven inbox browser. Search through your subjects or senders, and read messages instantly in a live scrollable preview pane.

terminal
# Live preview (up to 100 emails)
$ t3e list -n 100 \
  | fzf --header-lines=5 \
  --preview "t3e read {1}" \
  --preview-window=right,60%,wrap

# Select and read email
$ t3e read $(t3e list -n 100 \
    | fzf --header-lines=5 \
    | awk '{print $1}')
Developer Environment

Custom Shell Aliases & Integrations

Turn frequent email queries into fast, single-word keyboard shortcuts. Custom wrapper functions in your shell profile (e.g. .zshrc, .bashrc) make reading and checking emails faster than ever.

~/.bashrc
# Quick aliases for email triage
alias check-unread="t3e list --unread-only"

# Function
latest-mail() {
  t3e list | head -n 5 | tail -n 1 | \
    awk "{print \$1}" | xargs t3e read
}

# Function with $1=account $2=folder
email-view() {
  # Usage: email-view [account] [folder]
  local a="${1:-demo}"
  local f="${2:-INBOX}"
  t3e -a "$a" list -f "$f" -n 100 \
    | fzf --header-lines=5 \
      --preview "t3e read {1} -a $a -f '$f'" \
      --preview-window=right,60%,wrap
}
                
Power Search

Find Conversations Instantly

Execute lightning-fast server-side IMAP queries across senders, recipients, and participants. Default strictly to INBOX for predictability, target custom folders with -f, or search across your entire account with --all-folders.

search-examples.sh
# Search across all folders (excluding Trash & Spam)
$ t3e search --all-folders "contract"

# Combine sender, subject, and content criteria (AND logic)
$ t3e search --sender "Git" --subject "Build" --larger 10M

# Restrict search to specific folders
$ t3e search -f "INBOX,Sent" -p "Alice"

Why t3e?

Designed for integration, automation, and keyboard workflows.

pipes & json

Integration

First-class support for Unix redirects, stdin/stdout piping, and structured JSON output. Compose t3e effortlessly with standard shell utilities like jq, awk, grep, and custom pipelines.

ci/cd & cron

Automation

Run headless with non-interactive flags (--yes). Deliver automated build alerts in CI/CD runners, schedule cron health reports, and trigger event-driven notifications without human prompts.

fzf & aliases

Keyboard Workflows

Triage and search your inbox at terminal speed. Pair t3e with fzf for live preview panes, create custom shell aliases, and navigate conversations without ever reaching for a mouse.

Installation Guide

Choose your preferred installation method: quick automated shell script or direct binary tarball extraction.

Option 1 β€’ Faster

Automated Install Script

Automatically detects OS and CPU architecture, downloads the precompiled binary, and installs it into your system PATH.

$curl -fsSL https://t3e.dev/install | sh
Option 2 β€’ Manual

Direct Binary Extraction

Download precompiled release archives directly for offline, containerized, or custom directory installations (latest):

Manual Extraction Commands:
# 1. Extract archive
$ tar -xzf t3e-linux-x86_64.tar.gz

# 2. Move executable to your PATH
$ sudo mv t3e /usr/local/bin/

Connect Your Mailbox

Add multiple email accounts in seconds with built-in provider autodiscovery and pre-flight verification.

t3e account add (Gmail)
$ t3e account add personal --email alice@gmail.com Discovered connection settings via Provider Preset: IMAP imap.gmail.com:993, SMTP smtp.gmail.com:587 Notice: Gmail requires an App Password with 2-Step Verification enabled (https://myaccount.google.com/apppasswords). Your Google account login password will not work. Enter App Password for alice@gmail.com: **** **** **** **** Testing connection to IMAP and SMTP servers... Verifying account 'personal' (alice@gmail.com)... [βœ“] IMAP (imap.gmail.com:993): Connected and authenticated successfully [βœ“] SMTP (smtp.gmail.com:587): Connected and authenticated successfully Account 'personal' successfully added.

Gmail requires third-party clients to connect via an App Password rather than your regular account password. Enable 2-Step Verification on your Google Account, then generate a 16-character code at myaccount.google.com/apppasswords.

Copy and paste the code directly into the prompt (with or without the 4-character spacesβ€”t3e masks your input as **** **** **** **** and strips spaces automatically).

t3e automatically enables Microsoft's OAuth2 Device Code Flow for Outlook, Hotmail, and Microsoft 365 accountsβ€”no password prompt required.

Tokens are cached in ~/.config/t3e/tokens.toml and refreshed automatically in the background with a 90-day sliding activity window.

Both Apple iCloud (imap.mail.me.com) and Yahoo Mail (imap.mail.yahoo.com) use standard SSL/TLS port 993 for IMAP and port 587 for SMTP with dedicated application passwords.

β€’ Apple iCloud: Generate an App-Specific Password at appleid.apple.com.
β€’ Yahoo Mail: Generate an App Password in your Yahoo Account Security settings.

t3e connects to any mail provider or custom domain supporting standard IMAP & SMTP protocols:

β€’ Regional & Independent Providers: Automatically discovers settings for GMX, Freenet, AON, WEB.DE, Fastmail, Mailbox.org, Zoho, and Proton Mail Bridge.
β€’ Custom Domains & Self-Hosted: Works with mydomain.com, university/corporate mail, Mailcow, Postfix/Dovecot, and cPanel (port 993 / 587).

Manage multiple accounts in one configuration file. Switch dynamically with the global -a or --account option:

$ t3e list -a main
$ t3e send -a dev

Explore the Sandbox

Learn how to use t3e by walking through the zero-config demo mode commands.

01 / Welcome & Sandbox

Interactive Onboarding

Run t3e with no arguments to initialize the sandbox configuration and enter simulated demo mode.

t3e sandbox
$ t3e No configuration found. It looks like this is your first time running t3e on this machine! We have automatically initialized a demo configuration for you at: ~/.config/t3e/config.toml Starting Demo Mode... Welcome to t3e – a lightweight CLI email client! You are currently running in DEMO MODE. This is a local sandbox that simulates a real email server without requiring any credentials or configuration. To connect your email accounts and make t3e 'yours', run: $ t3e account add main --email me@main.com $ t3e account add dev --email me@dev.com Switch between multiple accounts anytime using -a, --account <name>. Or, if you prefer manual configuration, edit the config file directly at: ~/.config/t3e/config.toml Here are the subcommands you can run: t3e list List emails in your inbox t3e conversations View threaded email conversations t3e search Search emails across fields (sender, recipient, subject, content) t3e senders List senders and organizations t3e read <uid> Read the content of a specific email t3e flag <uid> ... Mark emails as read, unread, or starred t3e delete <uid> Delete an email t3e send Send / compose an email interactively or via script t3e folders List available mail folders t3e account add Add a new email account t3e account list List configured email accounts t3e --help Show help and usage options Try out the sandbox using this quick tutorial: 1. List your emails: $ t3e list 2. Read the welcome email (UID 1): $ t3e read 1 3. View threaded email conversations: $ t3e conversations --show-all 4. Search emails by keyword or participant: $ t3e search "piping" or $ t3e search -p "Alice" 5. Inspect senders in your inbox: $ t3e senders 6. Star the setup guide email (UID 2) (press 'y' to confirm, or skip with --yes): $ t3e flag 2 --star or $ t3e flag 2 --star --yes 7. Delete the piping email (UID 3) (press 'y' to confirm, or skip with --yes): $ t3e delete 3 or $ t3e delete 3 --yes 8. View the deleted email in Trash (to explore folder navigation): $ t3e list --folder Trash 9. Connect your real email account when ready: $ t3e account add main --email me@main.com Note: You can always view this welcome message again by running: $ t3e welcome Happy exploring!
02 / Mail Listing

List Emails in Inbox

Quickly list the emails inside your folder with their UID, status indicator, sender, subject, and date.

t3e list
$ t3e list Account: demo (demo@t3e.dev) [DEMO MODE] Folder: INBOX UID Status Sender Subject Date 3 ● Unix Philosophy <piping@t3e... The power of piping (stdin) Tue, 23 Jun 2026 11:40:00 +0200 2 ● Setup Guide <setup@t3e.dev> How to connect your real email account Tue, 23 Jun 2026 11:50:00 +0200 1 ● Welcome to t3e <welcome@t3e... Welcome to t3e! Tue, 23 Jun 2026 12:00:00 +0200
03 / Message Reading

Read Email Body

View the details and body text of a specific email using its UID.

t3e read <uid>
$ t3e read 1 From: Welcome to t3e <welcome@t3e.dev> Date: Tue, 23 Jun 2026 12:00:00 +0200 Subject: Welcome to t3e! -------------------------------------------------------------------------------- Welcome to t3e – a lightweight CLI email client. You are currently running in DEMO MODE. This is a local sandbox that simulates a real email server without requiring any credentials or configuration. Here are the subcommands you can run: - t3e list List emails in your inbox - t3e conversations View threaded email conversations - t3e search Search emails across fields (sender, recipient, subject, content) - t3e senders List senders and organizations - t3e read <uid> Read the content of a specific email - t3e flag <uid> --read/--star Mark emails as read, unread, or starred - t3e delete <uid> Delete an email - t3e send Send / compose an email interactively or via script - t3e folders List available mail folders - t3e account add Add a new email account - t3e account list List configured email accounts Try marking this email as read: $ t3e flag 1 --read Or delete an email: $ t3e delete 3 Next step: Read the Setup Guide email (UID 2) to learn how to connect your real account: $ t3e read 2 Enjoy!
04 / Threaded Conversations

View Email Threads

Group related messages across active mailboxes into chronological conversation threads, with --show-all to expand the message tree.

t3e conversations
$ t3e conversations --show-all Account: demo (demo@t3e.dev) [DEMO MODE] (default) Conversations: active mailboxes (excluding Trash/Spam) Showing: Latest 2 conversations (scanned 4 emails). Use -n or -s to display more. Thread ID Participants Subject Latest Activity Msgs Unread Star News th_759c6e722ef2 John Doe, Alice Smith Quick question about the project 23 Jun 14:30 1 0 0 0 └─ β—‹ [Sent #4] [23 Jun 14:30] John Doe <myemail@company... Quick question about the project th_8a61edc9a47e Welcome to t3e, Setup Gui... Welcome to t3e! 23 Jun 11:55 3 3 0 0 β”œβ”€ ● [INBOX #1] [23 Jun 11:40] Welcome to t3e <welcome@t... Welcome to t3e! β”œβ”€ ● [INBOX #2] [23 Jun 11:50] Setup Guide <setup@t3e.dev> How to connect your real email ac... └─ ● [INBOX #3] [23 Jun 11:55] Unix Philosophy <piping@t... The power of piping (stdin)
05 / Multi-Field Search

Search Emails & Participants

Search across subjects, bodies, senders, or participants (-p), which automatically queries both INBOX and Sent folders.

t3e search
$ t3e search "piping" Account: demo (demo@t3e.dev) [DEMO MODE] (default) Folder: INBOX Filter: Query: 'piping' Showing: Latest 2 matching emails. Use -n option to display more. UID Status Sender Subject Date 3 ● Unix Philosophy <piping@t3e... The power of piping (stdin) 23 Jun 11:55 2 ● Setup Guide <setup@t3e.dev> How to connect your real email account 23 Jun 11:50 $ t3e search -f "INBOX,Sent" -p "Alice" Account: demo (demo@example.com) [DEMO MODE] (default) Folders: INBOX, Sent Filter: Participant: 'Alice' Showing: Latest 1 matching email. Use -n option to display more. UID Folder Status Sender Subject Date 4 Sent β—‹ User Name <user@example.com> Quick question about the project 23 Jun 14:30
06 / Sender Analytics

Inspect Inbox Senders

Aggregate senders by message count, unread status, or recency, and distinguish direct messages from automated newsletters.

t3e senders
$ t3e senders Account: demo (demo@t3e.dev) [DEMO MODE] (default) Folder: INBOX (default) Sort: recent Showing: Top 3 senders scanned from last 3 emails. Use -n and -s options for more. Sender Total Unread Type Latest Subject Latest Date Unix Philosophy <piping@t3e.dev> 1 1 Direct The power of piping (stdin) 23 Jun 11:55 Setup Guide <setup@t3e.dev> 1 1 Direct How to connect your real email account 23 Jun 11:50 Welcome to t3e <welcome@t3e.dev> 1 1 Direct Welcome to t3e! 23 Jun 11:40
07 / Star & Flag

Star and Flag Emails

Flag emails interactively (with prompt verification) or append --yes for non-interactive scripting.

t3e flag
$ t3e flag 1 --star Verifying email 1 exists in INBOX... ======================= CONFIRM FLAG CHANGE ======================= Folder: INBOX UID: 1 From: Welcome to t3e <welcome@t3e.dev> Date: Tue, 23 Jun 2026 12:00:00 +0200 Subject: Welcome to t3e! =================================================================== Are you sure you want to star/flag this email? [y/N]: y Email flags for the email from Welcome to t3e <welcome@t3e.dev>, dated Tue, 23 Jun 2026 12:00:00 +0200, with subject "Welcome to t3e!" in folder INBOX were successfully starred. $ t3e flag 2 --star --yes Verifying email 2 exists in INBOX... Email flags for the email from Setup Guide <setup@t3e.dev>, dated Tue, 23 Jun 2026 11:50:00 +0200, with subject "How to connect your real email account" in folder INBOX were successfully starred.
08 / Delete

Delete Emails

Move an email to Trash by UID, verifying interactively or passing --yes for automation.

t3e delete
$ t3e delete 3 Verifying email 3 exists in INBOX... ======================= CONFIRM DELETION ======================= You are about to delete the following email: Folder: INBOX UID: 3 From: Unix Philosophy <piping@t3e.dev> Date: Tue, 23 Jun 2026 11:40:00 +0200 Subject: The power of piping (stdin) ================================================================= Are you sure you want to delete this email? [y/N]: y Deleting email 3 from INBOX... Email from Unix Philosophy <piping@t3e.dev>, dated Tue, 23 Jun 2026 11:40:00 +0200, with subject "The power of piping (stdin)" was successfully deleted from folder INBOX. $ t3e delete 2 --yes Verifying email 2 exists in INBOX... Deleting email 2 from INBOX... Email from Setup Guide <setup@t3e.dev>, dated Tue, 23 Jun 2026 11:50:00 +0200, with subject "How to connect your real email account" was successfully deleted from folder INBOX.
09 / Folder Navigation

Folders & Trash Verification

Display all available mail folders on your server and query a specific folder like Trash.

t3e folders
$ t3e folders Account: demo (demo@t3e.dev) [DEMO MODE] INBOX Sent Trash $ t3e list -f Trash Account: demo (demo@t3e.dev) [DEMO MODE] Folder: Trash UID Status Sender Subject Date 5 ● Spam Bot <spam@spam.com> Fwd: Important update regarding the project Mon, 22 Jun 2026 10:20:00 +0200 3 ● Unix Philosophy <piping@t3e... The power of piping (stdin) Tue, 23 Jun 2026 11:40:00 +0200 2 ● β˜… Setup Guide <setup@t3e.dev> How to connect your real email account Tue, 23 Jun 2026 11:50:00 +0200

Frequently Asked Questions

Common questions about t3e credentials, automation, offline usage, and uninstallation.

Removal

How do I uninstall t3e?

t3e is a standalone binary with no background services or daemons. You can uninstall it anytime using our automated uninstaller:

Linux & macOS:
curl -fsSL https://t3e.dev/uninstall | sh
Windows (PowerShell):
irm https://t3e.dev/uninstall.ps1 | iex

To also purge all local configuration, saved accounts, and cache databases, run the complete purge command:

Complete Purge (Linux & macOS):
curl -fsSL https://t3e.dev/uninstall | sh -s -- --purge
Complete Purge (Windows):
$env:PURGE = "1"; irm https://t3e.dev/uninstall.ps1 | iex

Manual removal: On Linux/macOS, delete ~/.local/bin/t3e (or sudo rm /usr/local/bin/t3e) and ~/.config/t3e. On Windows, delete %LOCALAPPDATA%\Programs\t3e and %APPDATA%\t3e.

Security

How does t3e protect my email passwords and credentials?

Security is a core design priority. t3e protects your credentials using several layers of defense:

  • Strict File Permissions (0600): On Unix and Linux systems, t3e automatically verifies and enforces 0600 (-rw-------) mode permissions on config.toml, ensuring no other user on the system can read your configuration file.
  • Machine-Bound AES-256-GCM Encryption (password_enc): Passwords can be encrypted at rest tied cryptographically to your machine hardware identity and operating system user account.
  • External Password Managers (password_cmd): Fetch passwords on demand from tools like pass, 1Password CLI, or bitwarden.
  • Environment Variables (password = "ENV_VARS"): Inject credentials dynamically in CI/CD runners and automated pipelines.
  • OAuth2 Token Storage: Microsoft Outlook / Office 365 tokens are stored with strict user-only permissions in tokens.toml.
Offline & Sync

How does offline mode work? Is it automatic or explicit?

Offline execution is explicit via the -O (or --offline) flag on subcommands like t3e list -O, t3e search -O, and t3e conversations -O.

When -O is supplied, t3e executes purely against your local SQLite message cache without making any network calls to the IMAP server. Before going offline (e.g. before travel), you can warm your cache with:

t3e sync -n 50

For t3e read <UID>, if a message body was already downloaded during sync, it is served directly from cache instantly.

Architecture

Does t3e run background daemons or services?

No. t3e has zero background daemons, zero background services, and zero resident memory consumption. Every command executes synchronously to perform its exact task and terminates immediately upon completion, leaving your system completely idle.

Mailboxes

Which email providers are supported out of the box?

Any email provider that supports standard IMAP and SMTP protocols works with t3e. You are never locked into any specific ecosystem.

t3e features an intelligent multi-stage autodiscovery engine with pre-configured connection profiles for a wide variety of services, such as:

  • Major Providers: Such as Gmail, Google Workspace, Microsoft 365, Outlook / Hotmail (native OAuth2 or App Password), Apple iCloud, and Yahoo Mail.
  • Independent & Regional Providers: Such as GMX Mail (.com, .net, .de, .at, .ch), Mailbox.org, Fastmail, Proton Mail (via Bridge), Zoho Mail, and AOL Mail.
  • Developer & AI Agents: Such as AgentMail (with direct API key authentication) and automated testing mailboxes.
  • Custom Domains, Universities & Self-Hosted: Works seamlessly with personal domains, university accounts, cPanel webmail, and self-hosted mail servers (such as Postfix, Dovecot, Mailcow, or Stalwart). Custom hostnames and ports can always be specified directly.
Automation

Can AI coding agents and shell scripts drive t3e?

Yes! t3e was built for developer composability and AI tool integration:

  • Structured JSON: Every read command (list, read, conversations, search, folders, senders) supports --json for deterministic parsing.
  • Headless Mutations: State-changing operations accept -y / --yes to bypass interactive confirmations.
  • AI Agent Quickstart: Direct AI agents to prompt https://t3e.dev/agent.install for one-line installation and operational specifications.
Maintenance

How do I update t3e to the newest release?

Simply run:

t3e update

t3e automatically checks for new releases, detects its current executable path, downloads the matching precompiled release, and upgrades itself in-place.