{"slug": "show-hn-tmpmail-disposable-email-in-one-command-a-tui-or-a-desktop-app", "title": "Show HN: Tmpmail – disposable email in one command, a TUI or a desktop app", "summary": "Developer qorvyx released tmpmail 0.3.7, a command-line tool that creates disposable email addresses across six free providers (mail.tm, DropMail, Guerrilla Mail and others) with automatic fallback, and returns verification codes via an `otp --wait` command that blocks until mail arrives. The tool ships with a full-screen terminal view (`tmpmail tui`), a desktop app at version 0.1.6 for Linux, macOS and Windows, and a built-in MCP server for AI agents, and is an independent rewrite of the original tmpmail shell script whose only service shut down. Mail arrives within about a second on mail.tm and DropMail, HTML mail is cleaned and remote tracking images are blocked by default.", "body_md": "**Disposable email in one command: make an address, get the verification code back.**\n\n  From the terminal, a full-screen terminal view (TUI) or a desktop app, on Linux, macOS and Windows.\n\n```\naddr=$(tmpmail new -q)                   # quickfox605@maxxspace.com\n./signup.sh \"$addr\"                      # anything that sends a mail to it\ntmpmail otp --wait --include-existing    # waits for the mail, then prints 482913\n```\n\n- **Six free services, automatic fallback.** mail.tm, DropMail, Guerrilla Mail and[others](#providers) ; if one is down, tmpmail uses the next.\n- **Mail arrives live** , within about a second on mail.tm and DropMail.\n- **For scripts and CI:** a code in one line.`otp --wait` and`wait --link` block until the\nmail arrives and print just the code or the link; every command has`--json` and clear exit\ncodes.\n- **For people:** a full-screen terminal view (TUI,`tmpmail tui` ) and a desktop app for\nLinux, macOS and Windows, on the same inboxes.\n- **For AI agents:** a built-in[MCP](https://modelcontextprotocol.io) server.\n- **Safe by default:** HTML mail is cleaned, remote images (trackers) are blocked, and\nhidden characters can't change your terminal.\n- **One small program** with nothing else to install, and verifiable builds.\n- **An independent rewrite of the original tmpmail** shell script, whose only service shut down;[its old flags still work](#coming-from-the-original-tmpmail) .\n\n- \n📦 **[Install](#install)**## Debian, Fedora, Arch, macOS, Windows\n- \n🚀 **[Quick start](#quick-start)**\n- \n🖥️ **[Desktop app](#the-desktop-app)**\n- \n📖 **[Guide](#guide)**## Addresses, reading, waiting, inboxes, scripts, AI agents\n- \n📮 **[Providers](#providers)**\n- \n📚 **[Reference](#reference)**## Commands, exit codes, configuration\n- \n⚠️ **[When not to use tmpmail](#when-not-to-use-tmpmail)**\n- \n🔒 **[Privacy and security](#privacy-and-security)**\n- \n🛠️ **[Development](#development)**\n- \n🤝 **[Contributing](#contributing)**\n- \n📝 **[To do](#to-do)**\n\ntmpmail comes in two parts. They share the same inboxes and settings; install one or both.\n\n| Part | Command | What you get | \n|---|---|---|\n| **Command-line tool** | `tmpmail` | the commands below, a full-screen view in the terminal ( `tmpmail tui` ) and the[AI agent server](#with-an-ai-agent) | \n| **Desktop app** | **tmpmail** in your apps menu (`tmpmail-gui` from a terminal with the`.deb` or`.rpm` ; the AppImage runs from its own file) | a window with your mail, the code in a banner with a Copy button, notifications and a tray icon | \n\nPick your system: [Debian and Debian-based](#debian-and-debian-based) ·\n[Fedora and RPM-based](#fedora-and-rpm-based) ·\n[Arch and other Linux](#arch-and-other-linux) · [macOS](#macos) · [Windows](#windows).\nThe desktop app's files are on its own\n**[release page (version 0.1.6)](https://github.com/qorvyx/tmpmail/releases/tag/gui-v0.1.6)**.\n\nFor Debian and the systems built on it that use `apt`: Ubuntu, Linux Mint, Pop!_OS,\nelementary OS, Zorin OS and others. The desktop app needs Debian 12 or Ubuntu 22.04 or later\n(or a system based on them).\n\n```\ncurl -fLO https://github.com/qorvyx/tmpmail/releases/download/v0.3.7/tmpmail-cli_0.3.7_amd64.deb\nsudo apt install ./tmpmail-cli_0.3.7_amd64.deb\ncurl -fLO https://github.com/qorvyx/tmpmail/releases/download/gui-v0.1.6/tmpmail-desktop-0.1.6-amd64.deb\nsudo apt install ./tmpmail-desktop-0.1.6-amd64.deb\n```\n\nFor Fedora and the other systems that use `dnf`. The command-line tool also installs on\nRHEL, CentOS Stream, Rocky Linux and AlmaLinux; the desktop app needs version 9 or later of\nthose, with [EPEL](https://docs.fedoraproject.org/en-US/epel/) turned on.\n\n```\ncurl -fLO https://github.com/qorvyx/tmpmail/releases/download/v0.3.7/tmpmail-cli-0.3.7-1.x86_64.rpm\nsudo dnf install ./tmpmail-cli-0.3.7-1.x86_64.rpm\ncurl -fLO https://github.com/qorvyx/tmpmail/releases/download/gui-v0.1.6/tmpmail-desktop-0.1.6-x86_64.rpm\nsudo dnf install ./tmpmail-desktop-0.1.6-x86_64.rpm\n```\n\n## More about the .deb and .rpm packages\n\n- \n**On ARM** (command-line tool only): use`arm64` in place of`amd64` in the`.deb` name, or`aarch64` in place of`x86_64` in the`.rpm` name.\n- \n**Package names** (what`apt remove` and`dnf remove` take) aren't the commands:Package name Command What it is `tmpmail-cli`` tmpmail`the command-line tool `tmpmail`` tmpmail-gui`the desktop app\n- \n**What the command-line package installs:**`/usr/bin/tmpmail` , its man pages\n(`man tmpmail` ) and the bash, zsh and fish completions. It needs no other package;`xdg-utils` (to open mail and links in the browser) is recommended, so apt and dnf install\nit too, and`wl-clipboard` or`xclip` lets`tmpmail copy` use the clipboard.\n- \n**openSUSE:** the`.rpm` files install with`sudo zypper install --allow-unsigned-rpm ./FILE.rpm` .\n- \n**Updates:** the packages don't update by themselves; install the next version's file the\nsame way.\n\nEither with [Homebrew](https://brew.sh):\n\n```\nbrew install qorvyx/tap/tmpmail\n```\n\nor by downloading it (on ARM, use `aarch64` in place of `x86_64`):\n\n```\ncurl -fLO https://github.com/qorvyx/tmpmail/releases/download/v0.3.7/tmpmail-0.3.7-x86_64-unknown-linux-musl.tar.gz\ntar xzf tmpmail-0.3.7-x86_64-unknown-linux-musl.tar.gz\ninstall -D -t ~/.local/bin tmpmail-0.3.7-x86_64-unknown-linux-musl/tmpmail\n```\n\nIf a new terminal then says `tmpmail: command not found`, add `~/.local/bin` to your `PATH`\nonce (bash; for zsh use `~/.zshrc`, and in fish run `fish_add_path ~/.local/bin`):\n\n```\necho 'export PATH=\"$HOME/.local/bin:$PATH\"' >> ~/.bashrc\n```\n\nThe AppImage, which runs on its own:\n\n```\ncurl -fLO https://github.com/qorvyx/tmpmail/releases/download/gui-v0.1.6/tmpmail-desktop-0.1.6-x86_64.AppImage\nchmod +x tmpmail-desktop-0.1.6-x86_64.AppImage\n./tmpmail-desktop-0.1.6-x86_64.AppImage\n```\n\n## More about the AppImage\n\n- It may need `libfuse2` ; without FUSE, run it with`--appimage-extract-and-run` ([details](https://github.com/qorvyx/tmpmail/blob/main/gui/README.md#without-fuse---appimage-extract-and-run) ).\n- It adds no menu entry by itself; AppImageLauncher or Gear Lever add one\n([or by hand](https://github.com/qorvyx/tmpmail/blob/main/gui/README.md#the-appimage) ).\n- It shows COLRv1 color emoji (Fedora's) in black and white, since the WebKit it carries\ncan't draw them ([why](https://github.com/qorvyx/tmpmail/blob/main/gui/README.md#the-appimage) ).\n- On NVIDIA, if the window stays blank, start it with `WEBKIT_DISABLE_DMABUF_RENDERER=1` (this goes for the`.deb` and`.rpm` too).\n\nWith [Homebrew](https://brew.sh):\n\n```\nbrew install qorvyx/tap/tmpmail\n```\n\nWith Homebrew (macOS 11 or later):\n\n```\nbrew install --cask qorvyx/tap/tmpmail-desktop\n```\n\nThe app isn't notarized by Apple, so macOS refuses to open it the first time: open\nit once, then go to **System Settings → Privacy & Security** and click **Open Anyway**.\nmacOS asks again after each update.\n\n## More macOS details\n\n- **Use the full names** (`qorvyx/tap/...` ): Homebrew's own`tmpmail` is a different program.\n- **Without Homebrew:** the command-line tool's`.tar.gz` is on the[releases page](https://github.com/qorvyx/tmpmail/releases/latest) ; the desktop app's`tmpmail-desktop-0.1.6-universal.dmg` (macOS 10.15 or later) is on[its release page](https://github.com/qorvyx/tmpmail/releases/tag/gui-v0.1.6) : open it\nand drag tmpmail to Applications.\n- **From a terminal** ,`xattr -dr com.apple.quarantine /Applications/tmpmail.app` does the\nsame as**Open Anyway** (on macOS 15 and later, Control-click → Open no longer does).\n\n1. Download\n[`tmpmail-0.3.7-x86_64-pc-windows-msvc.zip`](https://github.com/qorvyx/tmpmail/releases/download/v0.3.7/tmpmail-0.3.7-x86_64-pc-windows-msvc.zip) and unzip it.\n2. Open File Explorer, paste `%LOCALAPPDATA%\\Programs` into its address bar and press\nEnter. Make a new folder there named`tmpmail` , and move`tmpmail.exe` into it.\n3. Add that folder to your `Path` : open Start, search for**Edit environment variables for\nyour account** , select**Path** , click**Edit** , then**New** , and paste`%LOCALAPPDATA%\\Programs\\tmpmail` .\nClick**OK** twice.\n4. Open a new terminal and run `tmpmail --version` to check.\n\nDownload\n[`tmpmail-desktop-0.1.6-x64-setup.exe`](https://github.com/qorvyx/tmpmail/releases/download/gui-v0.1.6/tmpmail-desktop-0.1.6-x64-setup.exe)\nand run it. The app isn't code-signed, so Windows warns:\n\n1. Edge may say the file \"isn't commonly downloaded\": open the downloads list, click **⋯** next to the file, then**Keep** ,**Show more** ,**Keep anyway** .\n2. If Windows says \"Windows protected your PC\", click **More info** , then**Run anyway** .\n\n## More Windows details\n\n- The installer installs for your user only (no admin prompt) and fetches WebView2 if it's\nmissing. **Smart App Control** blocks unsigned apps completely; it can only be turned off\nas a whole.\n- The app installs into `%LOCALAPPDATA%\\tmpmail` , the same folder that holds the\ncommand-line tool's inboxes.\n- `cargo install --locked tmpmail` needs Rust and the Visual Studio C++ Build Tools;\ncargo-binstall's own Windows program needs the Visual C++ Redistributable.\n\n## cargo, shell completions, checking a download, updating and uninstalling\n\n**With Rust:** `cargo install --locked tmpmail` builds the command-line tool on any system;\n[cargo-binstall](https://github.com/cargo-bins/cargo-binstall) users can run\n`cargo binstall tmpmail` to get the ready-made program instead.\n\n**Shell completions:** Homebrew and the `.deb` and `.rpm` install them already. For the\nother ways:\n\n```\ntmpmail completions bash > ~/.local/share/bash-completion/completions/tmpmail\ntmpmail completions zsh  > ~/.zfunc/_tmpmail\ntmpmail completions fish > ~/.config/fish/completions/tmpmail.fish\n```\n\nIn PowerShell, write them to a file of their own and load it from your profile:\n\n```\ntmpmail completions powershell | Out-File -Encoding utf8 $HOME\\tmpmail-completions.ps1\nif (!(Test-Path $PROFILE)) { New-Item -Force $PROFILE }\nAdd-Content $PROFILE '. $HOME\\tmpmail-completions.ps1'\n```\n\nIf a new PowerShell window then says \"running scripts is disabled on this system\", allow\nlocal scripts once: `Set-ExecutionPolicy -Scope CurrentUser RemoteSigned`.\n\n**Check a download:** each release has a `SHA256SUMS` file. Download it next to the file\nand run `sha256sum -c --ignore-missing SHA256SUMS` (on Windows, `certutil -hashfile FILE SHA256` prints the hash to compare). Every file also has a GitHub build attestation that\nproves it was built from this repository (needs the GitHub CLI 2.49 or later, logged in):\n\n```\ngh attestation verify tmpmail-0.3.7-x86_64-unknown-linux-musl.tar.gz --repo qorvyx/tmpmail \\\n  --signer-workflow qorvyx/tmpmail/.github/workflows/release.yml\n```\n\nFor the desktop app's files, end it with `gui-release.yml` instead.\n\n**Update and uninstall the command-line tool:**\n\n| Installed with | Update | Uninstall | \n|---|---|---|\n| Homebrew | `brew upgrade qorvyx/tap/tmpmail` | `brew uninstall qorvyx/tap/tmpmail` | \n| The `.deb` | install the new version's file | `sudo apt remove tmpmail-cli` | \n| The `.rpm` | install the new version's file | `sudo dnf remove tmpmail-cli` | \n| cargo | `cargo install --locked tmpmail` | `cargo uninstall tmpmail` | \n| A download | download the new version the same way | delete `tmpmail` (`tmpmail.exe` ) | \n\nThe desktop app: update by installing the new version's file (Homebrew:\n`brew upgrade --cask qorvyx/tap/tmpmail-desktop`); uninstall it like any app\n(`sudo apt remove tmpmail`, `sudo dnf remove tmpmail`, Windows Settings → Apps, or\n`brew uninstall --cask qorvyx/tap/tmpmail-desktop`).\n\nUninstalling either part keeps your inboxes and settings, since the other may use them. To\nremove everything, delete `~/.local/state/tmpmail` and `~/.config/tmpmail` on Linux,\n`~/Library/Application Support/tmpmail` on macOS, or `%LOCALAPPDATA%\\tmpmail` and\n`%APPDATA%\\tmpmail` on Windows (uninstall the desktop app first there: it is installed in\n`%LOCALAPPDATA%\\tmpmail` too). [The app's own data](https://github.com/qorvyx/tmpmail/blob/main/gui/README.md#removing-it).\n\n**Optional helpers** you probably have already: `copy` uses `wl-copy`, `xclip` or `xsel` on\nLinux (`pbcopy` on macOS, `clip.exe` on Windows); `read --html` opens your browser;\n`watch --notify` uses `notify-send` on Linux; long messages open in `less`.\n\n**Versions:** the desktop app works with the command-line tool from version 0.3.2 on.\n\n**Building the desktop app from source** (Rust 1.90+, Node 24, pnpm):\n`cd gui && pnpm install && pnpm tauri dev`.\n\n``` bash\n$ tmpmail new\nnoblesummit274@fldubai.com\nvia mail.tm (until deleted; messages kept 7 days)\n$ tmpmail otp --wait\n482913\n```\n\nThen:\n\n```\ntmpmail                # list the mail that arrived\ntmpmail read 1         # read the newest message\ntmpmail tui            # browse everything in a full-screen view\n```\n\nThe address you made last is the *active* one; every command uses it unless you\n[pick another](#several-inboxes).\n\nIn the full-screen view (`tmpmail tui`), mail shows up as it arrives, the code is\nhighlighted, and `y` copies it. Press `?` for the keys.\n\nRather have a window? The desktop app does the same with the same inboxes: it shows your\nmail live, puts the code in a big banner with a Copy button, shows HTML mail safely (light\nor dark), saves attachments, notifies you of new mail, and can stay in the tray.\n[More about the app](https://github.com/qorvyx/tmpmail/blob/main/gui/README.md). To install it, see [Install](#install).\n\nEach part is a short explanation and the commands for it. Not every service supports every\nfeature; the [provider table](#providers) shows which do.\n\n```\ntmpmail new              # a random, readable address, e.g. quickfox605@maxxspace.com\ntmpmail new -c           # the same, and copy it to the clipboard\ntmpmail whoami           # show it again later\ntmpmail new -u otter42                 # your own name before the @\ntmpmail new otter42@maxxspace.com      # or the whole address\ntmpmail domains                        # the domains on offer\ntmpmail domains -p dropmail            # DropMail's (about 20)\ntmpmail new -d yomail.info             # an address on that domain\n```\n\nIf a site refuses one disposable domain, try another. Your own username works on mail.tm, mail.gw, Guerrilla Mail and Maildrop.\n\n`tmpmail new` tries the services in this order and uses the first one that works:\n`mailtm, dropmail, guerrilla, tempmail_lol, mailgw`. To pick one, or change the order:\n\n```\ntmpmail new -p guerrilla               # only Guerrilla Mail\ntmpmail providers --check              # which ones are up right now\nTMPMAIL_PROVIDER=dropmail,mailtm tmpmail new\n```\n\nThe order can also be set in the [config file](#configuration). Maildrop is never picked\nunless you ask for it (`-p maildrop`), because its inboxes are public.\n\n```\ntmpmail                  # list messages, newest first (same as tmpmail ls)\ntmpmail read 1           # read the newest; long ones open in a pager\ntmpmail read 1 --html    # the HTML version in your browser, made safe, no remote images\n```\n\nA message can be named by its number in the list or by its id (or the start of it). With no number, commands use the newest message.\n\n```\ntmpmail otp --wait                    # wait for a new mail with a code, print the code\ntmpmail wait --link --from github     # wait for a mail from GitHub, print its best link\ntmpmail otp 1                         # the code in a message you already have\ntmpmail links 1                       # every link in it, verification links first\n```\n\nWaiting stops after 180 seconds (change it with `-t`) and exits with code 2. It only counts\nmail that arrives after you start; add `--include-existing` if the mail may already be\nthere. `--from`, `--subject` and `--body` pick the right mail.\n\nWith mail.tm and DropMail, new mail shows up within about a second (the service tells tmpmail right away). The others are checked every 5 seconds.\n\n```\ntmpmail attachments 1                 # list them\ntmpmail save 1 -o ~/Downloads         # download all of them\ntmpmail save 1 invoice.pdf            # or just one\n```\n\nExisting files are never overwritten.\n\nGive inboxes labels and switch between them:\n\n```\ntmpmail new -l github\ntmpmail new -l shop\ntmpmail inboxes                       # all of them; * marks the active one\ntmpmail -i github ls                  # one command on another inbox\ntmpmail use shop                      # make it the active one\ntmpmail ls -a                         # mail in every inbox\ntmpmail otp --wait -a                 # a code arriving at any of them\n```\n\nEach label belongs to one inbox. Inboxes can also be named by address or by the part\nbefore `@`.\n\nmail.tm and mail.gw inboxes are real accounts that last until you delete them. Set a password to use one on their website too, or log in to one you made there:\n\n```\ntmpmail new -p mailtm --password 'correct horse'\ntmpmail login otter42@maxxspace.com --password 'correct horse'\n```\n\nDropMail and Guerrilla Mail come back to the same address by themselves (mail from an expired\nsession is gone). Maildrop inboxes are public, so `tmpmail login name@maildrop.cc` needs no\npassword.\n\n```\ntmpmail delete 1                      # delete one message\ntmpmail delete --all                  # every message in the inbox\ntmpmail drop                          # delete the inbox and forget it\ntmpmail rotate                        # swap the active address for a fresh one\ntmpmail watch --rotate 30m            # a fresh address every 30 minutes\ntmpmail inboxes --prune               # forget inboxes that have expired\n```\n\nEvery command takes `--json`, and the exit code tells a timeout (2) from a service that is\ndown (3):\n\n```\naddr=$(tmpmail new -q)\n./signup.sh \"$addr\"\ncode=$(tmpmail otp --wait --include-existing --from 'acme' --timeout 120)\nlink=$(tmpmail wait --link --include-existing --subject 'confirm')\ntmpmail --json ls | jq -r '.messages[0].subject'\n```\n\nUse `--include-existing` when the mail might arrive before `wait` starts. Then the newest\nmatching mail wins, so an old code doesn't beat a resent one.\n\nIn GitHub Actions:\n\n```\n- name: Install tmpmail\n  run: |\n    mkdir -p ~/.local/bin && cd \"$RUNNER_TEMP\"\n    curl -sSfL -O https://github.com/qorvyx/tmpmail/releases/download/v0.3.7/tmpmail-0.3.7-x86_64-unknown-linux-musl.tar.gz \\\n      -O https://github.com/qorvyx/tmpmail/releases/download/v0.3.7/SHA256SUMS\n    sha256sum -c --ignore-missing SHA256SUMS\n    tar xzf tmpmail-0.3.7-x86_64-unknown-linux-musl.tar.gz --strip-components=1 \\\n      -C ~/.local/bin tmpmail-0.3.7-x86_64-unknown-linux-musl/tmpmail\n    echo \"$HOME/.local/bin\" >> \"$GITHUB_PATH\"\n\n- name: Sign-up test\n  run: |\n    addr=$(tmpmail new -q)\n    curl -sSf https://staging.example.com/signup -d \"email=$addr\"\n    code=$(tmpmail otp --wait --include-existing --timeout 120)\n    curl -sSf https://staging.example.com/verify -d \"email=$addr\" -d \"code=$code\"\n```\n\nA [daily check](https://github.com/qorvyx/tmpmail/blob/main/.github/workflows/providers.yml) makes sure the services work from GitHub's\nLinux, macOS and Windows runners.\n\n`tmpmail mcp` is an [MCP](https://modelcontextprotocol.io) server, so an AI agent can make\nan inbox, sign up somewhere and read the code by itself:\n\n```\nclaude mcp add tmpmail -- tmpmail mcp\n```\n\nOther clients take `{ \"command\": \"tmpmail\", \"args\": [\"mcp\"] }`. Anyone can send mail to a\nthrowaway address, so the agent should treat that mail as untrusted: tmpmail removes hidden\ncharacters, shortens very long fields and marks mail as `untrusted_content`.\n[Tools and details](https://github.com/qorvyx/tmpmail/blob/main/docs/usage.md#mcp-server-for-ai-agents).\n\n[sdushantha/tmpmail](https://github.com/sdushantha/tmpmail) was a shell script whose only\nservice, 1secmail, has shut down. This is a rewrite, and its old flags still work:\n`tmpmail -g [ADDR]`, `tmpmail`, `tmpmail -r`, `tmpmail ID`, `-d`, `-c`, `-t`, `-b BROWSER`.\n[How the old flags map](https://github.com/qorvyx/tmpmail/blob/main/docs/usage.md#original-tmpmail-flags).\n\n| Provider | Lifetime | Own username | Pick domain | Attachments | Instant | Delete | Raw source | Log back in | \n|---|---|---|---|---|---|---|---|---|\n| [mail.tm](https://mail.tm)`mailtm` | until deleted; mail kept 7 days | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | password | \n| [DropMail.me](https://dropmail.me)`dropmail` | renewed while used |  | ✓ | ✓ | ✓ |  | ✓ | automatic | \n| [Guerrilla Mail](https://www.guerrillamail.com)`guerrilla` | mail kept 60 min | ✓ | ✓ | ✓ |  | ✓ |  | automatic | \n| [tempmail.lol](https://tempmail.lol)`tempmail_lol` | 1 hour |  |  |  |  |  |  |  | \n| [mail.gw](https://mail.gw)`mailgw` | until deleted; mail kept 7 days | ✓ | ✓ | ✓ |  | ✓ | ✓ | password | \n| [Maildrop](https://maildrop.cc)`maildrop` | 24 h without mail | ✓ |  |  |  | ✓ | ✓ | by name | \n\n- **Maildrop is public:** anyone who guesses the name can read the inbox, so it is only used\nwhen you ask for it.\n- **tempmail.lol** is the last resort: it has no attachments.\n- Many sites block known disposable domains; [another domain](#choose-the-username-or-the-domain) or provider usually gets through.\n\nThanks to **mail.tm** for its free API; as its terms ask, this program links back to it.\n\n## **Commands**\n\n| Command | What it does | \n|---|---|\n| `new [ADDR] [-u USER] [-d DOMAIN] [-p PROVIDER] [-l LABEL] [-c]` | Create an inbox (alias `generate` ) | \n| `ls [-a]` | List messages, newest first, `*` = unread;`-a` = every inbox | \n| `read [ID\\|N] [--recent] [--html [--images]] [--raw] [--no-pager]` | Show a message | \n| `wait [-a] [--from RE] [--subject RE] [--body RE] [--timeout S] [--otp\\|--link] [--delete]` | Wait for a matching message | \n| `otp [ID] [--regex RE] [--wait ...]` | Print a verification code | \n| `links [ID] [--match RE] [--first] [--open]` | Print links, verification links first | \n| `watch [-a] [--notify] [--rotate 30m]` | Print new messages as they arrive | \n| `attachments ID` ,`save ID [ATT...] [-o DIR]` | List / download attachments | \n| `delete ID` ,`delete --all` | Delete messages | \n| `whoami` ,`copy` ,`qr` | Show / copy / show as QR code the active address | \n| `inboxes [--prune]` ,`use ADDR` ,`-i ADDR` | Manage several inboxes | \n| `login ADDR --password PW` | Use an existing mail.tm / mail.gw account | \n| `rotate [--keep]` | Replace the active address with a fresh one | \n| `domains [-p PROVIDER]` ,`providers [--check]` | Domains, and which services are up | \n| `tui` | Full-screen view, updated live | \n| `mcp` | MCP server for AI agents | \n| `completions bash\\|zsh\\|fish\\|powershell` ,`man [-o DIR]` | Shell completions, man pages | \n\nEvery option is explained in [docs/usage.md](https://github.com/qorvyx/tmpmail/blob/main/docs/usage.md), and the `--json` output in\n[docs/json.md](https://github.com/qorvyx/tmpmail/blob/main/docs/json.md).\n\n## **Exit codes**\n\n| Code | Meaning | \n|---|---|\n| 0 | success | \n| 1 | other error | \n| 2 | `wait` timed out (rate limits are waited out until then) | \n| 3 | the service failed (down, rate limited, login refused, bad answer) | \n| 4 | nothing found (no inbox, no such message, no code in the message) | \n| 64 | usage error (bad flag, or an option this service doesn't support) | \n\nWith `--json`, errors are printed as `{\"error\":{\"kind\":\"...\",\"message\":\"...\"}}`.\n\n## **Configuration and environment**\n\n`config.toml`, all optional: in `~/.config/tmpmail/` on Linux,\n`~/Library/Application Support/tmpmail/` on macOS, `%APPDATA%\\tmpmail\\` on Windows (or the\nfile `$TMPMAIL_CONFIG` names):\n\n```\nproviders = [\"mailtm\", \"guerrilla\"]   # order for `new`\nbrowser = \"firefox\"                   # for --html and links --open\nclipboard_cmd = \"wl-copy\"\npager = \"less\"                        # for long messages (default $PAGER, else less)\npoll_interval = 5                     # seconds between checks\ntimeout = 180                         # default wait timeout\npush = true                           # instant new mail from mail.tm/DropMail\nhttp_timeout = 20                     # seconds per request to a service\n```\n\nAn unknown key is ignored with a warning. A bad value is an error.\n\nEnvironment: `TMPMAIL_PROVIDER` (comma list), `TMPMAIL_TIMEOUT`, `TMPMAIL_POLL_INTERVAL`,\n`TMPMAIL_PUSH`, `TMPMAIL_HTTP_TIMEOUT`, `TMPMAIL_INBOX`, `TMPMAIL_PASSWORD`,\n`TMPMAIL_STATE_DIR`, `TMPMAIL_DROPMAIL_TOKEN`, `PAGER`, `NO_COLOR`.\n\n- **For anything you need to keep.** An address and its mail last only as long as the\nservice keeps them (from an hour to until you delete it; see[Providers](#providers) ), so\ndon't use one for an account you want to recover later.\n- **For anything private.** The services can read the mail, and Maildrop inboxes are public.\n- **To send mail.** tmpmail only receives.\n- **Where disposable addresses are blocked.** Many sites refuse known disposable domains;[another domain](#choose-the-username-or-the-domain) or service sometimes gets through.\n\n- **No telemetry.** tmpmail only talks to the mail service you use.\n- **Your inboxes stay private.** Addresses and their passwords are kept in a`state.json` only you can read (`~/.local/state/tmpmail/` on Linux;[elsewhere](#more-install-options) ).\n- **Mail can't take over your terminal.** Hidden characters and terminal control codes are\nremoved before anything is shown, so a sender can't change your screen or fake a name.\n- **HTML mail is made safe.**`read --html` and the desktop app remove scripts, forms and\nanything that could cover the mail, and**block remote images** (tracking pixels) unless\nyou allow them (`--images` ). Links only open if they are real web addresses.\n- **Attachments are saved safely.** Names can't leave the folder you chose, existing files\nare never overwritten, and on Windows and macOS saved files are marked as downloaded.\n- **AI agents:** anyone can mail a throwaway address, so treat what an agent reads there as\nuntrusted.\n\nThe details are in [docs/usage.md](https://github.com/qorvyx/tmpmail/blob/main/docs/usage.md#privacy-and-security-in-detail) and the app's\n[security model](https://github.com/qorvyx/tmpmail/blob/main/gui/README.md).\n\n```\ncargo test                  # unit tests + provider tests against a mock server\ncargo clippy --all-targets\n./scripts/smoke.sh          # a live check against the real services\nvhs assets/demo/demo.tape   # re-record the demo\n```\n\nCI checks `Cargo.lock` against the RustSec advisory database on every push and every week\n([audit workflow](https://github.com/qorvyx/tmpmail/blob/main/.github/workflows/audit.yml); accepted advisories are listed with their\nreasons in [`deny.toml`](https://github.com/qorvyx/tmpmail/blob/main/deny.toml)).\n\nThe crate is also a library: `tmpmail = { version = \"0.3\", default-features = false }`\ngives the providers, inbox storage, watcher and mail cleaning without the command-line\nparts. Its API isn't stable yet. The desktop app is in [`gui/`](https://github.com/qorvyx/tmpmail/blob/main/gui/README.md), with its own\n`gui-v*` releases.\n\nBug reports, ideas and pull requests are welcome: see [CONTRIBUTING.md](https://github.com/qorvyx/tmpmail/blob/main/CONTRIBUTING.md).\nTo report a security problem privately, see [SECURITY.md](https://github.com/qorvyx/tmpmail/blob/main/SECURITY.md).\n\n- Windows: Scoop and winget packages, so the command-line tool installs in one command\n-  Arch: an AUR package (under another name: `tmpmail` there is the original script)\n- The desktop app on Flathub\n- A Nix package\n- The desktop app for arm64 Linux\n\nWant to help with one? See [CONTRIBUTING.md](https://github.com/qorvyx/tmpmail/blob/main/CONTRIBUTING.md).\n\nGPL-3.0-or-later. See [LICENSE](https://github.com/qorvyx/tmpmail/blob/main/LICENSE).", "url": "https://wpnews.pro/news/show-hn-tmpmail-disposable-email-in-one-command-a-tui-or-a-desktop-app", "canonical_source": "https://github.com/qorvyx/tmpmail", "published_at": "2026-12-04 22:47:42+00:00", "updated_at": "2026-12-04 23:15:16.999532+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "developer-tools", "ai-tools"], "entities": ["tmpmail", "qorvyx", "mail.tm", "DropMail", "Guerrilla Mail", "Model Context Protocol"], "also_reported_by": [], "takeaway": "tmpmail's `otp --wait --include-existing` blocks until a verification mail arrives and prints only the code, with `--json` and defined exit codes on every command for use in scripts and CI.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-tmpmail-disposable-email-in-one-command-a-tui-or-a-desktop-app", "markdown": "https://wpnews.pro/news/show-hn-tmpmail-disposable-email-in-one-command-a-tui-or-a-desktop-app.md", "text": "https://wpnews.pro/news/show-hn-tmpmail-disposable-email-in-one-command-a-tui-or-a-desktop-app.txt", "jsonld": "https://wpnews.pro/news/show-hn-tmpmail-disposable-email-in-one-command-a-tui-or-a-desktop-app.jsonld"}}