Skip to content

Releases

jmapcli 1.8.3

Choose a tag to compare

@jasonhollis jasonhollis released this 27 Nov 06:21

This release carries both builds, made from the same commit. macOS: Homebrew, or jmapcli-1.8.3.tar.gz below; it reports 1.8.3 (core a5ddef58). Linux (x86_64 and aarch64): jmapcli-1.8.3-linux-<arch>.tar.gz below (check it against SHA256SUMS, unpack it, and follow README-linux.md inside), or the signed apt and dnf repositories at pkg.boogie.digital; it also reports 1.8.3 (core a5ddef58).

Fixed

  • A repeated --attach keeps every file (BUG-713). jmapcli send, draft, reply and forward kept only the last --attach when the flag was given more than once, and dropped the earlier files without a word. Every --attach is now kept, in the order given, and one value can still list several paths separated by commas, so --attach a.pdf,b.png --attach c.txt attaches three files; a path given twice is attached twice. send now skips a blank piece (as in --attach "a.pdf, ") instead of failing on it, as the other three commands already did.

jmapcli 1.8.2

Choose a tag to compare

@jasonhollis jasonhollis released this 27 Nov 04:36

This release carries both builds. macOS: Homebrew, or jmapcli-1.8.2.tar.gz below; it reports 1.8.2 (core 05cd1ab4). Linux (x86_64 and aarch64): jmapcli-1.8.2-linux-<arch>.tar.gz below (check it against SHA256SUMS, unpack it, and follow README-linux.md inside), or the signed apt and dnf repositories at pkg.boogie.digital; it reports 1.8.2 (core 044dc25d). The program source is the same in both; the Linux build was made from a later commit that changes only the changelog packed with it.

Fixed

  • Searching by a bare domain finds the mail (BUG-712). jmapcli search --from example.org found nothing on Stalwart although mail from someone@example.org was there, and the MCP tool mail.search did the same with from, to and text. Stalwart matches only whole addresses, so no server filter can match a domain on its own. Now, when the --from or --to term (the from or to argument) is a bare domain such as example.com or @example.com, jmapcli still asks the server as before, and also reads the newest messages that match the other filters (--mailbox; in mail.search its other arguments), page by page, fetching only that address field and the received date, and keeps each message with an address in that domain or one of its subdomains (mail.example.com counts, notexample.com does not). This scan stops at --limit matches or after --scan-limit messages (default 5000; the new scan_limit argument of mail.search), and lists a message once even when new mail shifts the pages under it. The server's matches and the scan's are merged newest first, without duplicates, at most --limit, so a search finds no less than before: mail older than the scan is still found on a server that matches part of an address, and a dotted name read as a domain (john.smith, Amazon.com) keeps the server's matches. A bare-domain positional query (text) is handled the same way, and its scan keeps the messages with such an address in From, To or Cc. The hits are printed in the usual format. A note says that the server matches whole addresses only and how many messages jmapcli checked, and, when --scan-limit stopped the scan with older messages left unchecked, says so and suggests --mailbox or a larger --scan-limit. It goes to standard error for the command, and in mail.search to a third content block {"note": …}, after the results and the account block, which stays the second. Full addresses and terms without a dot are not checked by jmapcli, and --subject and --body are not changed. A domain is matched as written: an internationalised domain written in Unicode does not match its xn-- form, or the other way round.
  • A saved sign-in the server refuses now says so (BUG-673). When the server refused an account's saved sign-in, jmapcli printed Not authenticated. Run 'jmapcli login' first. (a refused OAuth refresh) or Invalid username or password. (an HTTP 401), as if nothing were saved. It now prints The server rejected the saved sign-in for <account>. Run 'jmapcli login --url <server> --username <account> --oauth' to sign in to this account again., with --password <password> or --token <token> in place of --oauth for an account saved with a password or a token. The MCP tools give the same text in their error when this happens as a tool call first opens the account. With no saved sign-in, with a credential from JMAPCLI_PASSWORD or JMAPCLI_TOKEN (or their _FILE forms), or when one command sent saved sign-ins for more than one account, the text is as before. On Linux, when the refused sign-in comes from a read-only store (a systemd credential or a credential command), jmapcli does not suggest jmapcli login, which would save the sign-in elsewhere while the old one is still read first: it prints The server rejected the saved sign-in for <account>, held in a read-only store (<location>). Update it there; 'jmapcli login' does not replace it., naming the store as logout does. After a refused OAuth refresh the library still removes the saved sign-in, so later commands and MCP tool calls for that account give the old not-signed-in text (Not authenticated. Run 'jmapcli login' first.); only the run that met the refusal says it was rejected. The exit status is unchanged.

Changed

  • jmapcli search refuses a --limit or a --scan-limit below 1 as a usage error, before any account is opened. mail.search refuses a limit below 1, and a scan_limit below 1 or not a whole number (a fraction, a string such as "5000", a boolean or null), with -32602.

jmapcli 1.8.1

Choose a tag to compare

@jasonhollis jasonhollis released this 23 Nov 11:05

This release carries both builds. macOS: Homebrew, or jmapcli-1.8.1.tar.gz below; it reports 1.8.1 (core 242258b3). Linux (x86_64 and aarch64): jmapcli-1.8.1-linux-<arch>.tar.gz below (check it against SHA256SUMS, unpack it, and follow README-linux.md inside), or the signed apt and dnf repositories at pkg.boogie.digital; it reports 1.8.1 (core 5ab03684). The program source is the same in both; the Linux build was made from a later commit that corrects the README packed with it.

Added

  • MCP: ten read tools. jmapcli mcp gains ten tools that read, beside the six mail tools: nine that read what the CLI already reads, and vacation.get. Each takes the optional account argument like the mail tools. A bad or missing argument is a JSON-RPC -32602. So is an argument name the tool does not have: a misspelt acount is refused and named, not ignored, and the input schemas say additionalProperties: false. A server without the capability, an unknown id or name, an account that names no configured account, or a server failure is a tool result with isError and a readable message.

    • mailboxes.list — id, name, role, parentId, totalEmails and unreadEmails, in the order jmapcli mailboxes prints.
    • identities.list — the sending identities stored on the server for the selected account: id, name, email, and replyTo when the identity sets one. It sends Identity/get and nothing else, so unlike jmapcli identity list it never creates an identity. When the session does not name urn:ietf:params:jmap:submission, the result is an isError that names it and no Identity/get is sent.
    • contacts.search (query, limit) — every word of the query must be found, ignoring case, in a contact's name, a nickname, an email address, a phone number or an organisation. Returns id, name, emails, phones, organization and isGroup for at most limit contacts (default 20).
    • contacts.get (contact_id) — the fuller card: nicknames, organizations, titles, every email and phone with its contexts, postal addresses, notes, birthday, address-book ids and a group's members. Photos are not returned. It looks in every address book of the login, as contacts.search does, and says "not found" only when every one of them was read: if no book has the card and one could not be read, the result is that failure.
    • calendar.list — id, name, color and isVisible, in the order jmapcli calendar list prints.
    • calendar.events (after, before, calendar) — the events in a window, under the rules of jmapcli calendar events: after and before are local date-times with no zone suffix (yyyy-MM-dd for midnight, or yyyy-MM-ddTHH:mm:ss), read in the machine's time zone; at most 200 events; recurrences are not expanded. calendar limits the list to one calendar by name or id. The result repeats the window and names the zone used. Its limitReached is true when the server returned the full 200: the list may then be cut short, so narrow the window.
    • sieve.list — id, name and isActive. sieve.get (name: a script's name or id) — the same, plus the script text. sieve.validate (script: the text to check) — valid, and error with the server's message when the script is not valid.
    • vacation.get — isEnabled, fromDate, toDate, subject, textBody and htmlBody.

    None of the ten changes a mailbox, an identity, a contact, a calendar, a script or the vacation reply. One does more than read: sieve.validate uploads the text to the server as a blob for the check (it is not stored as a script). The server now reports version 1.3 in initialize.

  • MCP: six tools that write, mail.send behind a switch, and activating a mail filter or replacing a stored script behind another. jmapcli mcp now lists twenty-two tools: the six mail tools, the ten read tools and the six below. Each runs the code of the command it mirrors.

    • mail.draft (to, cc, bcc, reply_to, subject, body, html, plain, from) creates a draft in Drafts, as jmapcli draft does. Every argument is optional.
    • mail.reply_draft (message_id, body, and optionally to, cc, bcc, reply_to, subject, reply_all, plain, from) creates a threaded reply that quotes the original, as jmapcli reply --draft does.
    • mail.forward_draft (message_id, to, and optionally body, cc, bcc, reply_to, subject, plain, from) creates a forward with the original's text and attachments, as jmapcli forward --draft does.
    • None of these three sends anything: each puts one message in Drafts and no EmailSubmission/set is issued, with or without --allow-send. Their result is draftId, sent (false), from, to, cc, bcc, subject and attachments.
    • mail.trash (message_ids) moves messages to the Trash mailbox, as jmapcli trash does: each leaves every other mailbox it is in. An account with no mailbox of the trash role is an isError and nothing moves.
    • calendar.create_event (calendar, title, start, and optionally end or duration, all_day, location, description, timezone) creates one event, as jmapcli calendar event add does. With neither end nor duration the event lasts one hour, or one day with all_day. Without timezone it is in the current time zone of the machine that runs the server, which need not be the user's; the tool's description says so, and the result's timeZone names the zone used. Unlike the command, the tool checks the times first: start and end must be yyyy-MM-ddTHH:mm:ss with no zone suffix (yyyy-MM-dd is enough for start with all_day), end must be later than start, and end cannot be combined with duration or all_day.
    • sieve.push (name, script, activate) stores a Sieve script under a name through the same function as jmapcli sieve push. It asks the server to make the script the active filter only when activate is true; the default is false, as the command's is without --activate. Two things need the server to be started as jmapcli mcp --allow-sieve-activate: activate true, and replacing a script that is already stored. Without the switch the tool is still listed with the same arguments, and with activate false or omitted it still stores a script under a name that no stored script has. A call with activate true and otherwise valid arguments is an isError that names the switch; no account is opened and nothing is uploaded or stored. A call with a name that a stored script already has, active or not, is an isError that names the switch too; the account's list of scripts is read, and nothing is uploaded or stored. Upper and lower case count as different in a name, as they do when the command chooses the script to replace. A script stored without the switch is not made active by the tool; a person can still make it active later. The tool's description in tools/list says which of the two the server does: replace and activate, or refuse both. The switch is separate from --allow-send: neither turns the other on. With the switch, the server writes a line to standard error when it starts saying that sieve.push with activate true is on, and that replacing a stored script is on too. The command jmapcli sieve push needs no switch, with or without --activate. With the switch the tool replaces a stored script of the same name, as the command does, but it refuses a name that is the active script's name unless activate is true, because replacing that script changes the filter that is running: the result is an isError that says so, and nothing is uploaded or stored. With or without the switch, every call that reaches the account reads the account's scripts once, before anything is uploaded, with activate true as well as without; when the scripts cannot be read the call is refused, and nothing is uploaded or stored. The check and the store go by that one reading: the tool does not read the scripts a second time to choose between a new script and a replacement, and the SieveScript/set it sends carries the state of that reading (ifInState) when the server gave one. When a server that honours ifInState finds that the account's scripts changed after the reading, it refuses the store, and the result is an isError that says the scripts changed while the script was being stored, that nothing was stored, and to call sieve.list and try again. So a script that another client stores, renames or makes active between the tool's check and its store is not replaced or changed on such a server. On a server that ignores ifInState, or that gave no state with the reading, the store is sent as it was chosen from the reading, and what another client did in between is not seen: a stored script that the call was to replace is then still replaced when another client has made it the active one in between. Stalwart honours ifInState on SieveScript/set, by one run on a Stalwart test account (23 Nov 2026): with nothing changed in between the script was stored, and when a second jmapcli replaced another script between the reading and the store, the store was refused and the stored script kept its text. The command jmapcli sieve push makes no check first and sends no ifInState. If the script was stored but the scripts cannot be read back afterwards, the result has no activeScript and a warning that says so. Needs JMAPClient with getSieveScriptsWithState and the reading argument of setSieveScript.
    • mail.send (to, subject, body, and optionally cc, bcc, reply_to, html, plain, from) sends a message, as jmapcli send does. It exists only when the server is started as jmapcli mcp --allow-send. Without the switch it is not in tools/list, and a call to it is an isError that names the switch, sends nothing and opens no account. With the switch the server lists twenty-three tools, and when it starts it writes a line to standard error sayi...
Read more

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>).

jmapcli 1.7.5

Choose a tag to compare

@jasonhollis jasonhollis released this 20 Nov 05:29

One fix to how jmapcli reads your contacts. Built against JMAPClient main cc1ab42 (the merge of unit/bug-700-contacts-chunked-get).

Fixed

  • Contacts are read in full on a large address book. jmapcli reads your contacts to resolve a recipient you give by name instead of by address, and to add the server's contacts to aliases list. When the address book held more contacts than the server accepts in one request (its maxObjectsInGet), the server refused the whole read ("JMAP request too large"), so names were not resolved from contacts and aliases list showed no server contacts; and the listing read only the first page of the server's results. Now the read is split by the server's own limit (500 when it does not say) and the listing is paged to the end (BUG-700). Nothing changes for an address book within the limit.
  • --version reports 1.7.5 (core <sha>).

jmapcli 1.7.4

Choose a tag to compare

@jasonhollis jasonhollis released this 17 Nov 04:30

Two fixes to the HTML part jmapcli builds from Markdown text. Built against JMAPClient main 7a5c28b (the merges of unit/bug-685-lossy-contacts and of the web-address fix 970c06f).

Fixed

  • A web address followed by punctuation is linked without the punctuation. A bare address at the end of a clause — …open at https://example.com/poll/, and… — was linked with the , inside the link (the same for ., ;, :, ! and ?), so the link could lead nowhere. The punctuation now follows the link as text, and an address inside quotes or angle brackets ends at the closing quote or bracket.

  • reply and forward keep the quoted original's line and paragraph breaks in the HTML part. In the default (Markdown) mode the reply's own text and the quoted original were rendered as Markdown together, so the HTML part showed the whole quote as one paragraph with its lines joined by spaces, and characters such as #, * and - in the original were read as formatting. Now only your own text is Markdown; the original follows as quoted text, one line per line (for a reply: the attribution line and a blockquote; for a forward: the forwarded header block and the original). The text part was always right and is unchanged; --plain still sends no HTML part. Reported by Jason on 16 Nov 2026 against 1.7.3 (draft fzzaaabor1).

  • --version reports 1.7.4 (core <sha>).

jmapcli 1.7.3

Choose a tag to compare

@jasonhollis jasonhollis released this 10 Nov 01:44

jmapcli 1.7.3

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

Sign-in fix for Keychain items created by another program, and sync deltas. Built against JMAPClient main 3bc5674 (the merge of unit/keychain-owner-replace: Keychain GREEN 17389bb + 154c485, sync GREEN f4a5b05).

Fixed

  • Sign-in no longer fails with unexpectedStatus(-25244) when a Keychain item for the account was created by another program. macOS refuses to change such an item ("Invalid attempt to change the owner of this item"). jmapcli now deletes it and saves the new one when macOS allows the delete; otherwise sign-in fails with a message naming the item and, when deleting it by hand can help, the command to remove it. If the delete succeeds but saving the new item then fails, the message says the previous item was removed. Only that refusal leads to a replace: when macOS refuses the save for another reason (for example a locked keychain or a denied access prompt), sign-in fails with a message and no item is deleted.
  • Other items for the account. Sign-in keeps one kind of credential per account and removes the others, writing the new one first. With --oauth, a jmap-password or jmap-token item that macOS will not delete because another program owns it is left in place and the sign-in is saved; the OAuth credential is the one used (any other refusal fails the sign-in with a message naming the item). With --password or --token, a jmap-oauth item that macOS will not delete (or, with --password, a jmap-token item) would be used instead of the new credential, so sign-in fails with a message naming that item; the new secret has been written and the old item still works until it is removed.
  • Keychain errors name the service, the account and the reason, for example Keychain refused to save the jmap-oauth item for you@example.com (status -25244: Invalid attempt to change the owner of this item). If it persists: security delete-generic-password -s jmap-oauth -a 'you@example.com'. The security line is shown only when deleting the item by hand can help. No secret is ever printed.
  • sync does deltas again. 1.7.2 printed <Type>: Full re-sync required (state expired) on every run. One saved-state file served every account, so state from one account was sent to another server (Stalwart account ids such as s repeat across servers), and a refused delta was never recovered from. Sync state is now kept per account, keyed by the server's JMAP API URL and the account id, in ~/.config/jmapcli/sync-state/. A type whose saved state the server cannot use, or that has none (for example calendars added later), is re-seeded once and reported as <Type>: no usable saved state for this account; re-seeded (changes since the last sync were not listed); the next run lists changes. The old ~/.config/jmapcli/sync_state.json cannot be tied to an account, so it is no longer read and is left as it is; run jmapcli sync --initialize once per account. MCP mail.sync uses the same per-account state. JMAPClient GREEN f4a5b05 (RED 179c18f).
  • --version reports 1.7.3 (core <sha>).

Signed binary: jmapcli-1.7.3.tar.gz, sha256 d522cc06b1ca1cb565394a4f967389c09bdb1a3260d8435e1e39032a688ec55f.

jmapcli 1.7.2

Choose a tag to compare

@jasonhollis jasonhollis released this 10 Nov 00:43

jmapcli 1.7.2

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

Help text only. jmapcli login --help now says what sign-in does, so nobody has to learn it from an error. No behaviour change from 1.7.1; built against JMAPClient main 9f74ef9.

Changed

  • login --help says that --oauth needs an https:// server, that a plain-HTTP server (http://host:port) works with --password or --token (include the port), and that with --oauth the --username must be the account you sign into in the browser: if the server reports a different account, no tokens or account are stored, and a bare name matches only name@<the --url host>, name@<that host minus its first label> (api.fastmail.com: fastmail.com), or the same bare login name if the server reports one. The --url, --username and --oauth option lines say the same in short.
  • jmapcli --help lists login as "Sign in to a JMAP server (password, token or browser OAuth)".
  • --version reports 1.7.2 (core <sha>).

Signed binary: jmapcli-1.7.2.tar.gz, sha256 63c469890289c353ddd9337d115eb808f8c230f5ba7eac6f4562229cde4b4a0e.

jmapcli 1.7.1

Choose a tag to compare

@jasonhollis jasonhollis released this 09 Nov 02:05

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).

jmapcli 1.5.0

Choose a tag to compare

@jasonhollis jasonhollis released this 01 Sep 00:13

jmapcli 1.5.0

OAuth login. jmapcli login --oauth is a first-class, mutually exclusive alternative to --password and --token.

brew tap jasonhollis/boogie && brew install jmapcli
jmapcli login --url https://api.fastmail.com --username YOU@fastmail.com --oauth

Works with Fastmail and Stalwart (RFC 8252 loopback PKCE, RFC 7591 dynamic client registration, Keychain jmap-oauth custody). App-password and paste-token login are unchanged.

--version reports 1.5.0 (core 6d6174a1).

macOS Apple silicon. Developer ID signed and notarised (K69Q4G43Q4). Closed-source binary; this repo is docs + issues.

sha256 (jmapcli-1.5.0.tar.gz):

4dfdf80d10ce8ce7b62a62d42f1e80263b7b5cd389290fc07cef633534280d31