Skip to content

jmapcli 1.8.0

Choose a tag to compare

@jasonhollis jasonhollis released this 22 Nov 02:47

jmapcli runs on Linux. One fully static binary per architecture, a credential chain that fits servers and desktops, and two changes that also reach macOS. Built against JMAPClient main 715c383 (the merge of unit/stalwart1-reply-headers).

Added

  • Linux, x86_64 and aarch64. A single fully static musl binary per architecture: no shared libraries, no glibc version floor. Run on Debian 12 and 13, Ubuntu 22.04, 24.04 and 26.04, Fedora, RHEL 10 (UBI) and Alpine. It needs ca-certificates; tzdata and libsecret-tools / libsecret are optional. Install and use: README-linux.md.
  • Where the secret lives on Linux. There is no Keychain, so jmapcli reads the secret from the first of these that has an entry for the account: a systemd credential ($CREDENTIALS_DIRECTORY/jmapcli.<username>, or .token), a credential command named in credential-commands.json, the desktop keyring through secret-tool, or an opt-in credentials.json. The first two are read-only. credential-commands.json and credentials.json are refused unless they are regular files you own with no group or other access, in a directory that is not group- or world-writable; the message names the chmod or chown to run. jmapcli never changes permissions itself.
  • login --store file (Linux). Saves the credential in a 0600 credentials.json in the config directory and uses it from then on. While that file exists the desktop keyring is neither read nor written.
  • Headless OAuth on Linux. login --oauth opens xdg-open when there is a display, and otherwise (or with --no-browser) prints the authorization URL and an ssh -L command. --port fixes the redirect port; the redirect URL can also be pasted into the terminal.
  • Environment overrides (all platforms). JMAPCLI_TOKEN / JMAPCLI_PASSWORD, or JMAPCLI_TOKEN_FILE / JMAPCLI_PASSWORD_FILE, replace the stored secret for one account (JMAPCLI_ACCOUNT, --account, or the only configured account) for that run. With several accounts and none selected, jmapcli refuses. Nothing is saved.
  • JMAPCLI_LOG (Linux). debug, info, notice, warning or error turns on logging to stderr; the default is silent.
  • On Linux, configuration lives in $XDG_CONFIG_HOME/jmapcli, else ~/.config/jmapcli (created 0700). macOS paths are unchanged.

Changed

  • Dates are shown in your local time zone. list, read, search and the date line in a reply or forward used Melbourne time whatever the machine's zone; they now use the machine's zone. This affects macOS as well. Where the zone database is missing (Linux without tzdata), dates are shown in GMT.
  • login --oauth on Linux is refused up front when there is nowhere to save the grant. The refresh token rotates and cannot be recovered if it is not stored, so jmapcli checks for a writable store (a reachable desktop keyring, --store file, or an existing credentials.json) before it opens a port, registers a client or opens a browser.

Fixed

  • Linux: a rejected login no longer hangs. When a server answers 401 with a WWW-Authenticate: Basic challenge, as Stalwart does for a wrong password, jmapcli on Linux waited forever. It now returns the 401 and reports the failed sign-in.
  • Linux: no crash on a host without time zone data. Formatting a date on a host with no /usr/share/zoneinfo (a minimal Alpine, some container images) stopped jmapcli with a trap, so list failed. It now shows GMT.
  • reply works on Stalwart 1.x (all platforms). Stalwart 1.x refuses the header:…:asText forms of Message-ID, In-Reply-To and References with invalidArguments, so reply (and reply --draft) failed there. jmapcli now reads them through the standard messageId, inReplyTo and references properties (RFC 8621 §4.1.2), and the reply carries the right In-Reply-To and References. Fixed in JMAPClient 715c383.
  • --version reports 1.8.0 (core <sha>).