Repository navigation
jmapcli 1.8.0
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;tzdataandlibsecret-tools/libsecretare 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 incredential-commands.json, the desktop keyring throughsecret-tool, or an opt-incredentials.json. The first two are read-only.credential-commands.jsonandcredentials.jsonare 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 thechmodorchownto run. jmapcli never changes permissions itself. login --store file(Linux). Saves the credential in a 0600credentials.jsonin 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 --oauthopensxdg-openwhen there is a display, and otherwise (or with--no-browser) prints the authorization URL and anssh -Lcommand.--portfixes the redirect port; the redirect URL can also be pasted into the terminal. - Environment overrides (all platforms).
JMAPCLI_TOKEN/JMAPCLI_PASSWORD, orJMAPCLI_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,warningorerrorturns 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,searchand 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 withouttzdata), dates are shown in GMT. login --oauthon 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 existingcredentials.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: Basicchallenge, 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, solistfailed. It now shows GMT. replyworks on Stalwart 1.x (all platforms). Stalwart 1.x refuses theheader:…:asTextforms of Message-ID, In-Reply-To and References withinvalidArguments, soreply(andreply --draft) failed there. jmapcli now reads them through the standardmessageId,inReplyToandreferencesproperties (RFC 8621 §4.1.2), and the reply carries the right In-Reply-To and References. Fixed in JMAPClient715c383.--versionreports1.8.0 (core <sha>).