Repository navigation
tmpmail 0.3.3
tmpmail 0.3.3 fixes a TUI crash in short terminals, stale codes from wait --include-existing, undecoded tempmail.lol headers, duplicate labels, lost addresses when copying fails, and a set of smaller error and output fixes.
Fixed
- The TUI no longer crashes in a short terminal. A terminal (or tmux pane) 7 rows high or less, at start or after a resize, made
tmpmail tuipanic. It now draws what fits at any size. wait --include-existingtakes the newest match. Among the messages already in the inbox, it returned the oldest matching one, so a code from an earlier sign-up try beat the one just resent. The newest now wins (in each inbox with-a); mail arriving during the wait is still taken oldest first. The MCP server'swait_for_message,get_verification_codeandget_links, which include existing mail by default, had the same problem.- Encoded subjects and senders are decoded. tempmail.lol passed RFC 2047 headers on as they are, so
=?utf-8?q?Zo=C3=AB?=showed instead ofZoëinls,read,--json, the TUI and the desktop app. Headers are now decoded the same way for every provider, and the preview (intro) has no line break at its end. watch --notifyescapes markup. On Linux,<,>and&in the subject reached notification servers that read markup (GNOME Shell, KDE Plasma), so a sender could add bold text, links or images, and aName <address>sender lost its address. They are now escaped when the server reads markup, as the desktop app does.- A label picks one inbox.
new -l,login -l, the MCP server'screate_inbox, the TUI and the desktop app accepted a label another inbox already had (or that was another inbox's local part), and then-i LABELmatched neither. A taken label is now refused before anything is created (exit 64), an ambiguous-ilists the inboxes it matches,rotate --keepmoves the label to the new inbox, and logging in again to a stored address keeps its label. new -candrotate -ckeep the address when the clipboard fails. With a failing or missing clipboard tool, the inbox was created (and forrotate, the old one dropped) but the address was never printed and the exit code was 1. The address is now printed first, the failed copy is a warning, and the exit code is 0.rotatedrops the old inbox only after the new address is shown.wait --deleteis refused before waiting on providers that can't delete messages (DropMail, tempmail.lol), instead of failing after the wait. With-athose inboxes are skipped with a note.--jsonnow always prints one document: a delete that fails after the message was printed is told on stderr, and the exit code still says so.savekeeps going past an attachment the provider won't serve (mail.tm refuses names with a/). The others are saved, each failure is reported (failedin--json), and the exit code is the first failure's.ls -aexits with an error when no inbox could be read (3 when their providers are unreachable), instead of 0.- Guerrilla Mail images load with
read --html --images. Guerrilla points images at its own proxy, which a page opened from a file can't reach; they now point back at each image's own URL. - Clearer errors when creating an inbox:
new -d maildrop.ccandnew NAME@maildrop.ccask you to add-p maildrop(Maildrop is public, so it's never picked on its own);new foo@is a usage error instead of a request to every provider; and an unknown domain with one provider down names that provider instead of saying "all providers: unreachable". TMPMAIL_HTTP_TIMEOUTis checked likehttp_timeoutin the config:0,xor a negative number is now a usage error instead of timing every request out or being ignored.providers = []in the config is refused instead of quietly meaning the default order.--jsonusage errors are JSON. A bad value, an unknown option or conflicting options printed clap's text even with--json; they are now{"error":{"kind":"usage",...}}on stdout (exit 64).- Smaller fixes:
read's hints (tmpmail save ID,read ID --html) include-i ADDRESSwhen the inbox isn't the active one;qr --jsonprints{"address": ...}; a Maildroploginshows the same public-inbox warning asnew; the TUI's?lists every key,Gstops at the message's last page, andono longer fills the status line with a cut-off path; shell completions offer the provider ids after-p;man -o DIRnames the folder it couldn't write.
Changed
tmpmail providersshowsrawfor the providers that supportread --raw(mail.tm, mail.gw, DropMail, Maildrop), and the docs say which ones do.-pchecks the provider id while parsing, so an unknown one is refused with the list of known ones (still exit 64);login -paccepts only providers that can log in.
Known issue
- A new address whose name part equals another inbox's label (label
work, thennew work@…) is still accepted, and-i workthen matches both and asks you to pick (exit 64, listing the addresses). Use the full address, or a different name. Fixed in the next release.
The desktop app is released separately. gui-v0.1.2 was built before these fixes; the next desktop release picks up the header decoding and the label check from this release's library.
Install
cargo install tmpmail
cargo binstall tmpmail # prebuilt binary, no compiling
brew install qorvyx/tap/tmpmail # macOS or LinuxOr 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.3-x86_64-unknown-linux-musl.tar.gz --repo qorvyx/tmpmail