Skip to content

tmpmail 0.3.4

Choose a tag to compare

@github-actions github-actions released this 01 Nov 03:27
· 50 commits to main since this release

tmpmail 0.3.4 fixes the small issues the retest of 0.3.3 found: an address named after another inbox's label, a few TUI and error-message details, and MCP tools that ignored misspelled arguments.

Fixed

  • A label keeps picking its inbox. A new or logged-in address whose name part equals another inbox's label (label work, then new -u work, new work@… or login work@…) was accepted, and -i work then matched both. It is now refused before any provider is asked (exit 64, naming the labelled inbox), in new, login, the MCP server's create_inbox, the TUI and the desktop app. A label also wins over a local part in -i, use and drop, so if a provider hands out such a name by chance (a random address, or rotate), the label still picks its own inbox and a warning says how to reach the new one. new ADDRESS for an address that is already stored now keeps its label, as login does.
  • The unknown-domain error reads right. With one provider down, new -d DOMAIN put the other providers' answers inside the unreachable provider's parenthesis (mailgw: unreachable (connection failed: …; the other providers don't offer …)). It now reads mailgw: unreachable (connection failed: …); the other providers don't offer "DOMAIN": …. The exit code (3) and the --json kind (unreachable) are unchanged.
  • The TUI's ? scrolls in a short terminal. At 7 rows it showed the first 5 keys and closed on any key, so the rest couldn't be read. ↑ ↓ (j k), PgUp PgDn and g G now scroll it, its bottom line says which rows are shown (1-5 of 18), and any other key closes it (any key, as before, when every key fits).
  • The TUI's status message no longer runs into the key hints (Ocopied the first link). A hint that doesn't fit next to the message is now left out whole, with at least one space before the message, and ? help is kept as long as it fits.
  • MCP tools refuse arguments they don't know. create_inbox with username instead of user quietly made a random address; every tool ignored unknown arguments. They are now a tool error (isError, kind usage) that names the argument and lists the ones the tool takes, and each tool's schema says "additionalProperties": false. Every argument a tool accepts is listed in its schema, so clients that build calls from it are unaffected.

For library users

  • The unknown-domain error with a provider down is now an Error::Other whose kind() is still unreachable and whose exit_code() is still 3, instead of an Error::Unreachable. Code that matches on Error::Unreachable won't see that one case; match on kind() instead.
  • New: watcher::CreateField and Watcher::refused, used by the desktop app to show which field of the new-inbox dialog was refused.

Install

cargo install tmpmail
cargo binstall tmpmail           # prebuilt binary, no compiling
brew install qorvyx/tap/tmpmail  # macOS or Linux

Or download a prebuilt binary below: Linux (x86_64, aarch64, fully static), macOS (Intel, Apple silicon) and Windows (x64, no Visual C++ Redistributable needed). Check it against SHA256SUMS, or verify its build attestation:

gh attestation verify tmpmail-0.3.4-x86_64-unknown-linux-musl.tar.gz --repo qorvyx/tmpmail