Repository navigation
jmapcli 1.7.1
jmapcli 1.7.1
Install or upgrade (the only publication path, DEC-008):
brew install boogie-digital/boogie/jmapcli
brew upgrade boogie-digital/boogie/jmapcliSign-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 --oauthFixed
- Plain-HTTP sign-in —
login --url http://host[:port]with--passwordor--tokensigns 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 withInvalid 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 orhttp://URL the server advertises, and anhttps://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 withCould not find a JMAP service at this URL.; jmapcli does not guesshttp://orhttps://. - BUG-430:
login --oauthbinds 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 whenusernameis 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 --oauthwith anhttp://URL is refused up front withOAuth 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.--versionreports1.7.1 (core <sha>).
Signed binary: jmapcli-1.7.1.tar.gz, sha256 3df6276e3e4da00de0b6348ae9ccb338799b4c276c0c4b4d295f49c5848a63b8; jmapcli --version → 1.7.1 (core b4f0888b).