Repository navigation
jmapcli 1.8.2
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.orgfound nothing on Stalwart although mail from someone@example.org was there, and the MCP toolmail.searchdid the same withfrom,toandtext. Stalwart matches only whole addresses, so no server filter can match a domain on its own. Now, when the--fromor--toterm (thefromortoargument) is a bare domain such asexample.comor@example.com, jmapcli still asks the server as before, and also reads the newest messages that match the other filters (--mailbox; inmail.searchits 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.comcounts,notexample.comdoes not). This scan stops at--limitmatches or after--scan-limitmessages (default 5000; the newscan_limitargument ofmail.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-limitstopped the scan with older messages left unchecked, says so and suggests--mailboxor a larger--scan-limit. It goes to standard error for the command, and inmail.searchto 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--subjectand--bodyare not changed. A domain is matched as written: an internationalised domain written in Unicode does not match itsxn--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) orInvalid username or password.(an HTTP 401), as if nothing were saved. It now printsThe 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--oauthfor 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 fromJMAPCLI_PASSWORDorJMAPCLI_TOKEN(or their_FILEforms), 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 suggestjmapcli login, which would save the sign-in elsewhere while the old one is still read first: it printsThe 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 aslogoutdoes. 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 searchrefuses a--limitor a--scan-limitbelow 1 as a usage error, before any account is opened.mail.searchrefuses alimitbelow 1, and ascan_limitbelow 1 or not a whole number (a fraction, a string such as"5000", a boolean ornull), with-32602.