Skip to content

jmapcli 1.7.1

Choose a tag to compare

@jasonhollis jasonhollis released this 09 Nov 02:05
· 3 commits to main since this release

jmapcli 1.7.1

Install or upgrade (the only publication path, DEC-008):

brew install boogie-digital/boogie/jmapcli
brew upgrade boogie-digital/boogie/jmapcli

Sign-in fixes. login --password and login --token now work against a plain-HTTP JMAP server (--url http://host[:port]), and login --oauth refuses to store tokens for an account other than --username (BUG-430). Built against JMAPClient main 9f74ef9 (the merge of unit/plaintext-base-origin, GREEN 8e8852a).

jmapcli login --url http://stalwart.lan:8080 --username you@example.test --password ...
jmapcli login --url https://api.fastmail.com --username YOU@fastmail.com --oauth

Fixed

  • Plain-HTTP sign-in — login --url http://host[:port] with --password or --token signs in, and later commands work, against a server that only speaks HTTP (for example a Stalwart on a LAN or in a VM). 1.7.0 sent the connection test without the credential, so it failed with Invalid username or password. even when the password was right. Plaintext is used only for the exact host and port you typed: the credential is never sent over plain HTTP to any other host or port, port or http:// URL the server advertises, and an https:// URL behaves exactly as before. A URL with no scheme (--url mail.example.com) is unchanged: it is stored as typed and the connection test fails with Could not find a JMAP service at this URL.; jmapcli does not guess http:// or https://.
  • BUG-430: login --oauth binds tokens only to the signed-in identity — jmapcli fetches the JMAP session with the newly minted tokens before storing anything, and stores them only when the session's identity (username, or the primary mail account's name when username is empty) matches --username, ignoring case. A mismatch, or a session that names no identity, stores nothing and exits non-zero; the mismatch error names both identities. A bare --username (no @) matches only that name at the server's mail domain (the URL's host, or the host minus its first label), and an IP-literal host admits only itself. (a48f5267, 9c095b7d, dcd792a0, 34f2eff1, d938837b, e05a6a9c, 3392f3bd.)

Changed

  • login --oauth with an http:// URL is refused up front with OAuth requires https; --url <url> is http. Use --password or --token for a plain-HTTP server. (usage error, non-zero exit), before any listener, browser or file is touched. OAuth itself is unchanged and still https-only.
  • --version reports 1.7.1 (core <sha>).

Signed binary: jmapcli-1.7.1.tar.gz, sha256 3df6276e3e4da00de0b6348ae9ccb338799b4c276c0c4b4d295f49c5848a63b8; jmapcli --version → 1.7.1 (core b4f0888b).