Skip to content

tmpmail 0.2.0

Choose a tag to compare

@github-actions github-actions released this 31 Oct 03:13
· 108 commits to main since this release

tmpmail 0.2.0 picks a provider from the TUI, works properly on Windows, and is now tested on Linux, macOS and Windows in CI. The crate can also be used as a library.

New

  • Provider picker in the TUI: press N to choose a provider from a list and create an inbox there (no fallback, like tmpmail new -p). Maildrop is marked public. n still creates one with the usual fallback order.
  • Library crate: tmpmail's core (providers, stored inboxes, the watcher loop, mail sanitizing) is available as tmpmail::…. Use tmpmail = { version = "0.2", default-features = false } to leave out the CLI's dependencies (clap, ratatui, qrcode). The API isn't stable yet.

Windows

  • read --html and links --open open the browser through Explorer's default handler when $BROWSER isn't set.
  • watch --notify shows a PowerShell toast notification.
  • Tools such as less and clip.exe are found through PATHEXT (less.exe etc.).
  • The terminal size comes from crossterm, which also works in the Windows console, so long messages open in the pager.
  • With no pager in the config, no $PAGER and no less installed, read prints the message instead of failing.

Under the hood

  • CI runs the tests and an offline run of the release binary on Linux, macOS and Windows, and the daily provider check creates inboxes from all three.
  • The provider check (and scripts/smoke.sh) fails only when every provider is down, since tmpmail falls back to the next one.
  • The crate is split into a core library and the tmpmail binary, behind a default cli feature.
  • The TUI's background polling and push now run on a shared watcher loop (src/watcher.rs), which the upcoming desktop app also uses.
  • The crates.io badge in the README is static, and CI checks that it matches Cargo.toml.

A desktop app is in development in gui/. It is not part of this release.

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. Check it against SHA256SUMS, or verify its build attestation:

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