github pimalaya/himalaya v3.0.0

one hour ago

Himalaya 3 is a low-level CLI over a unified mail API: the same commands on every backend, the protocol-specific ones beside them, plain text for a glance and --json for scripts, frontends and AI agents. Daily-mail comfort (tables, colours, relative dates, rich composition) moves to frontends such as himalaya-tui and to mml, and the offline side to the pimdir store Neverest syncs, which Himalaya reads and queues its writes into.

The wizard, the m2dir backend and the display options are gone, an unknown configuration key fails the load, and every failure carries a stable code. MIGRATION.md lists what to act on when upgrading from 2.x.

Added

  • Added the account-level tls table (tls.provider, tls.rustls.crypto, tls.cert, tls.client.cert, tls.client.key), inherited field by field by every network backend.

    A backend's own tls wins, so one trusted certificate reaches IMAP, SMTP, ManageSieve, JMAP, Gmail and Microsoft Graph alike.

  • Added tls.client.cert and tls.client.key to every network backend, a client certificate presented for mutual TLS.

    native-tls reads a PKCS#8 key only.

  • Added maildir.layout, fs by default or maildir++ for a Dovecot or Courier store.

    The root is the inbox, .a.b lists as a/b, and a level holding a dot is refused.

  • Added message.reply.posting-style and message.forward.posting-style, global or per account, the style used without --posting-style ([#772]).

  • Added the first-run welcome: at a terminal without a configuration, a command prints the missing path and the commands copying config.sample.toml in place, then exits 1.

    Under --json or with stderr piped, the error names the path and the sample instead.

  • Added config.sample.toml to the Nix package and the release archives as share/doc/himalaya/config.sample.toml, which install.sh installs under its prefix.

  • Added a stable code to the JSON failure object for the failures a caller is expected to act on, null otherwise.

    json-schema himalaya-error describes the object and lists every code.

  • Added the item and mailbox codes message-not-found, mailbox-not-found, message-unreadable, mailbox-unreadable, mailbox-duplicate, message-too-complex, thread-not-found, identity-not-found and submission-not-found.

  • Added the server refusal codes permission-denied, quota-exceeded, rate-limited (a Google daily quota included) and recipient-refused.

  • Added the usage codes usage-invalid, capability-missing, search-invalid, search-unsupported, page-token-invalid, stdin-taken, attachment-too-large, attachment-invalid and request-origin.

  • Added the account codes account-missing, account-default-missing, account-default-several and backend-not-built, the last naming the cargo feature to rebuild with.

  • Added the pimdir codes io-pimdir gives a store, its queue and its search index.

    Store: store-version, store-uncreated, store-foreign, store-corrupt, store-not-current, store-hash-algo, store-busy, store-owned, store-staging, store-in-flight, store-exposed, store-reset, source-empty, store-account-ambiguous, store-account-unknown, sync-version, lock-replaced.

    Queue and index: body-pending, item-duplicate, flag-invalid, action-malformed, conflict-unread, unsupported, no-performer, ambiguous-performer, row-not-found, confirmation-required, index-missing, index-outdated, index-version, index-zone-unknown, index-fts5-missing, query-refused, query-unanswerable, tag-refused.

  • Added errors to envelope list|search, mailbox list, flag add|set|remove and message copy|move|delete, one item error {id, code, error, sources} per item the command could not list or act on.

    A non-empty errors exits 3. In text each entry prints as an Error: line after the items.

  • Added a JSON Schema for every command, himalaya-error for the failure object, and .events schemas for what imap raw and sieve raw print before their result.

  • Added total to envelope list --json, how many messages the mailbox holds, null on Gmail and Microsoft Graph and for envelope search.

  • Added --page-token to envelope list|search and jmap email|mailbox|submission query, taking back the nextPage a page printed, null on the last page.

    It is refused beside --page, and a token no listing printed fails page-token-invalid.

  • Added --page-token to msgraph messages list, mail-folders list and mail-folders child-folders, following as is the Graph next link they print as nextPage.

    A query option beside it is refused (exit 2), the link carrying the query.

  • Added a library target, which himalaya-tui pins by git revision to run Himalaya's commands in-process, with no semver promise beyond the CLI grammar and --json.

  • Added himalaya repl, a session running one command per line over clients connected once for the session.

    Piped, every line gets exactly one answer; a line setting -a, -c, --log-level or -b, or reading stdin (stdin-taken), is refused.

  • Added himalaya mcp, a Model Context Protocol server over stdio exposing the account's unified API as tools named after their command.

    Only the reading tools are listed by default: --allow-write adds the writes and --allow-send the sends, which keep no copy without --allow-write.

  • Added the MCP tool attachment_download and the attach-data argument of message_compose, message_reply and message_forward ([#805], [#806]).

    Both refuse a part over himalaya mcp --max-attachment-size, 10 MiB by default, coded attachment-too-large.

  • Added account capability, listing what the account serves of the unified API: per capability its backend, its level (full, partial, server, none) and the detail.

  • Added a capability table per backend: a unified command reaching a capability its backend declares none is refused before connecting, coded capability-missing.

    The --help of every unified command ends with a generated Backends: footer listing those levels.

  • Added mailbox create, mailbox rename and mailbox delete to the unified API, on every backend.

    A delete takes the messages the mailbox holds; on pimdir each is queued for the sync engine.

  • Added the important and junk flags (RFC 8457 $Important, $Junk) to flag add|set|remove.

    Graph refuses junk, Gmail's junk is the SPAM label, and Maildir needs maildir.keywords.dovecot.

  • Added vacation get and vacation set, reading and changing the auto-reply on JMAP and Gmail, whatever configured backend holds the mail.

    IMAP refuses it, naming himalaya sieve.

  • Added message parse [EML], printing the message read view of a raw message from a file or stdin with no account, --part and --section writing one part.

  • Added --stdout to attachment download, writing one part's decoded bytes to stdout, or {id, mime, filename, size, data} with data in base64 under --json.

    It takes exactly one part id, no id or several being refused usage-invalid, exit 2, before connecting.

  • Added contentId to attachment list --json.

  • Added --all (-A) to message reply, replying to everyone but the account's own address ([#779]).

  • Added the source's attachments to message forward, --no-attachments leaving them out ([#780]).

  • Added the answered flag to the source of message reply --send and the forwarded flag to that of message forward --send ([#778]).

    Gmail and Microsoft Graph keep no answered flag, so a reply there flags nothing.

  • Added date, messageId and attachments to the JSON template message compose|reply|forward print without --save or --send.

    attachments lists {filename, mime, size} with no bytes: hand the files back through --attach.

  • Added --notify, --ret and --envid to smtp send, requesting delivery status notifications (RFC 3461) ([#775]).

    The command fails when the server does not announce DSN.

  • Added from, date and flags to each imap thread entry, the flags as the server spells them, as imap fetch prints them.

  • Added the IMAP mailbox roles a plain LIST marks with a special-use attribute (RFC 6154), shown by mailbox list and taken by -m.

    A mailbox.alias.<role> still wins.

  • Added jmap request, sending one whole JMAP request object and printing {response}, as Cardamum's does.

    jmap query, taking a method-calls array, stays as a hidden command.

  • Added gmail request and msgraph request, sending one request to the Gmail or Microsoft Graph API and printing {response}, the provider's answer.

    A URL off the API's origin is refused before the session opens, coded request-origin.

  • Added msgraph messages send-draft, sending an existing Microsoft Graph draft ([#787]).

  • Added --no-categories to msgraph messages update, removing every category of the message.

  • Added pimdir search, searching the account's mail in the pimdir query language (SEARCH.md §8) from the store's search index.

    --sort, --threads and --page-token shape the answer; each hit carries its envelope, mailboxes and a snippet, and coverage says what the index could not see.

  • Added pimdir count, counting the account's mail a query matches, with its coverage.

  • Added pimdir thread, listing the thread of a message from the search index, oldest first, a member the store cannot read under errors (exit 3).

  • Added pimdir tag, queueing a flag change on every message a query matches, --dry-run queueing nothing, a placement whose flags were never read printing flags null.

  • Added pimdir flag list|add|set|remove, reading and staging any flag of a pimdir message by its raw spelling, keywords included ([#790]).

  • Added pimdir mailbox list, listing each mailbox with its total and unread counts and the coverage the sync engine last listed it within.

  • Added pimdir mailbox create, rename and delete, queueing the change for the sync engine to apply on the server.

    A delete takes the messages; a mailbox holding other mailboxes parks, naming them.

  • Added pimdir message add and pimdir message send, staging a message and printing its link id as id with its queue row.

  • Added pimdir queue show, printing a row as pimdir queue list does, then its state (pending, parked, unconfirmed, applied), appliedAt and refusals.

  • Added pimdir attachment list and pimdir attachment search, the files the account's messages attach, newest first, each with the part attachment download takes.

  • Added pimdir performer, showing which sources can perform an intent (mail.submit, collection.create, collection.rename, collection.delete) and recording the user's choice.

  • Added pimdir status, reporting per mailbox how many messages carry a local body and how many writes are queued, with the parked rows and the standing refusals.

  • Added the role of a pimdir mailbox, recorded by the sync engine: mailbox list shows it, and a role name addresses the mailbox wherever one is taken.

Changed

  • BREAKING: Changed the top level, the account blocks and the message table to refuse an unknown key, naming it and its line, as every other table did.

    An m2dir block, a v1 backend or folder table and the rest of a v1 [message] table are refused with them; himalaya-tui's keys go under [tui] and [accounts.<name>.tui].

  • BREAKING: Changed the configuration loading to read every existing default path as a layer, each deep-merged on top of the ones before.

    $XDG_CONFIG_HOME/himalaya/config.toml, then $HOME/.config/himalaya/config.toml, then $HOME/.himalayarc, which therefore overrides; -c still replaces them.

  • BREAKING: Changed -c/--config to take one path per flag, never split on :: repeat -c to merge several files.

  • BREAKING: Changed the default account resolution to refuse several accounts marked default = true, naming them.

  • BREAKING: Changed -a default to name an account called default, where it took the account marked default.

  • BREAKING: Changed pimdir.account left unset to be derived from the accounts holding mail, several being refused coded store-account-ambiguous.

    A pimdir.account a store holding collections does not hold is refused coded store-account-unknown, where it read as an empty account.

  • BREAKING: Changed every http or https URL, a JMAP server and an HTTP proxy url, to take an ASCII host only: write an internationalised one in Punycode.

  • Changed the default of envelope.list.datetime-fmt to %F %R and of envelope.list.datetime-local-tz to true, printing dates in the local timezone.

  • Changed config.sample.toml into one account listing every key of every backend, commented at its default or an example value.

  • Changed imap.id.auto to send Himalaya's name, version, vendor and support-url when imap.id.fields is unset, rather than ID NIL ([#774]).

    An explicit empty imap.id.fields still sends ID NIL.

  • Changed the Nix package to build from the repository's package.nix.

  • BREAKING: Changed every --json key to camelCase (messagesTotal, nextPage, threadId, uidValidity), values and provider passthrough keeping their spelling.

    The TOML configuration stays kebab-case, and the json-schema titles are named *Output (EnvelopeListOutput).

  • BREAKING: Changed every --json output to data: a write prints what it acted on rather than a {"message": ...} sentence.

    message copy|move print {count, queued}, a send or a save {id, saved, sent, queued, errors}, message delete {action, count, ids, queued, errors} and a protocol write {id} or {ids}. A send only queued on pimdir prints sent: false; MIGRATION.md lists every shape.

  • BREAKING: Changed byte outputs under --json to {data, size, mime} in base64: message read --raw, jmap email export and the raw Gmail and Graph gets and attachment downloads.

  • BREAKING: Changed the shapes a concept takes to one: flags {raw, iana}, imap fetch addresses {name, email}, imap search ids numbers, attachment rows role rather than inline.

    Himalaya's own outputs print null rather than omit a key.

  • BREAKING: Changed subject to null for a message without one in every envelope and imap thread entry, where it printed "".

  • BREAKING: Changed an envelope's size to null when the backend gives none, where it printed 0: always on Microsoft Graph, sometimes on JMAP and pimdir.

  • BREAKING: Changed a UTC instant to end with Z in imap fetch --internal-date and the message read view, where it ended with +00:00.

  • BREAKING: Changed message read --json to print the envelope row and a view the same on every backend, no longer mail-parser's model of the message.

    The view holds headers (addresses as {name, email}, the unreadable ones under invalid), the decoded text and html, and parts. A message nested deeper than 8 levels, or holding more than 200 parts or 500 header lines, fails message-too-complex.

  • Changed piped --json output to print one value per line, and each json-schema schema to carry an $id naming the contract version.

  • BREAKING: Changed a command line Himalaya refuses under --json to print the failure object coded usage-invalid on stdout, still exiting 2.

    Exit 2 is now clap's alone: a printed result that is not a full success exits 3.

  • BREAKING: Changed a bare himalaya --json to fail coded usage-invalid, exit 2, where it printed the help.

  • BREAKING: Changed a server's refusal in the gmail, msgraph, jmap, sieve and smtp namespaces to print as the command's result and exit 3, where it printed the failure object and exited 1.

    An HTTP or JMAP refusal prints {refusal: {status, reason, message, code, retryAfter}}, a sieve NO {status, code, text}, a refused smtp send {refusals: [{rcptTo, code, text}]}.

  • BREAKING: Changed every imap command to print its completion, status beside what it understood, a NO or BAD printing {status, text} and exiting 3.

    imap raw and sieve raw print untagged and data responses as events, then the completion, and smtp raw prints {code, text}; their text form prints every line as received.

  • BREAKING: Changed imap raw to print each response from its exact octets, one that is not UTF-8 printing as an undecoded event {base64}, where its 8-bit bytes became U+FFFD.

  • BREAKING: Changed the values a protocol command refuses itself to fail with the command line, coded usage-invalid, exit 2, before the password command runs.

    An imap fetch|store|copy|move sequence set, jmap submission create given one side of the envelope, msgraph messages update naming no change, smtp send --notify never beside another condition, and an imap raw command without a tag of its own.

  • BREAKING: Changed the gmail, msgraph and jmap commands to print the provider's payload as it sent it, every property kept, where they printed typed rows dropping what the type did not model.

    gmail profile get prints emailAddress, gmail messages list messages rather than ids, gmail history list Gmail's records rather than messages-added-details, the Gmail settings lists their own key rather than response, msgraph messages list --count Graph's @odata.count.

  • BREAKING: Changed gmail labels get and msgraph mail-folders get to take one id and print that label or folder, where they took several and printed a list.

  • BREAKING: Changed jmap email delete|update|copy, jmap mailbox destroy, jmap identity delete and jmap submission cancel to print {ids, errors} and exit 3 when the server refused part of the set, where they exited 1.

  • BREAKING: Changed jmap email get|query, jmap mailbox get|query, jmap thread get, jmap identity get and jmap submission get|query to print an errors entry per id the server did not find, exiting 3.

  • BREAKING: Changed jmap email parse to print bodies as [{blobId, body}], beside errors for the blobs not found or not parsable, exiting 3.

  • BREAKING: Changed sieve check and sieve put to print the server's warnings as a list of lines, [] when none.

  • BREAKING: Changed account check to print {accounts: [{account, backends}]}, each backend row {backend, ok, code, error, tls}, and exit 3 when one fails, where it exited 0.

    tls holds what a backend reached over TLS was configured with, TLS in text, and is null for a local backend or a cleartext connection.

  • BREAKING: Changed account list to name the backends the build serves under backends and the ones it leaves out under notBuilt.

  • BREAKING: Changed the composers' JSON template to carry addresses as envelopes do, from an object {name, email} or null and to, cc and bcc lists of them, where they were strings.

  • BREAKING: Changed maildir create|rename|delete to print the folder's path as id, the id the unified mailbox commands take, and maildir list rows to gain id.

  • BREAKING: Changed maildir message save and mbox message save to maildir message add and mbox message add, save staying a hidden alias.

    Their JSON schemas are now himalaya-maildir-message-add and himalaya-mbox-message-add.

  • Changed maildir message copy|move and mbox message copy|move to print the ids the messages got in the target rather than the source ids.

  • Changed imap copy and imap move to print each of sourceUids beside the UID it got in destinationUids, in COPYUID order.

  • Changed imap select to print the first unseen message's number as firstUnseen, unseen being a count, and its text to show the recent count, the flags and the highest mod-sequence.

  • BREAKING: Changed every list to print as plain text, one item per line in columns two spaces apart, with no header row, border, colour or truncation, the way mscan prints a mailbox.

    Label: value fields (Account:, Mailbox:, Page:, Next page:) print above the items and the item errors below, a blank line apart. A message prints its id, the * unread, R answered, ! flagged and @ attachment columns, its date, its senders and its subject.

  • BREAKING: Changed the records to print as aligned Label: value lines: account check, imap select|status|id|fetch, jmap vacation-response get, sieve capability, the Gmail and Microsoft Graph gets and the header block of message read.

    imap search and imap sort no longer end with a count.

  • Changed --help to print without colour, each paragraph on one line.

  • Changed attachment download to print Saved <size> bytes to <path> per file written.

  • Changed the write confirmations on a pimdir account to say the write is queued (Message queued for sending), the sync engine applying it later.

  • BREAKING: Changed envelope search to read the pimdir SEARCH query language (§8), as pimdir search, Calendula and Cardamum do: from:alice date:2026-11-02.. is:unread "weekly sync".

    order by is now --sort newest-first|oldest-first|title|sender|relevance, Maildir and mbox match whole words, and a ~, / or { form is reserved (search-invalid). A clause the backend cannot search fails search-unsupported: a prefix (repo*) on Gmail, an instant or an amount back from now (date:2d) on Microsoft Graph, which compares days. MIGRATION.md maps every v2 clause.

  • BREAKING: Changed jmap email read --json to print {emails, errors}, each email as the server sent it, an id not found an errors entry coded message-not-found (exit 3).

  • BREAKING: Changed sieve deactivate --json to print {id}, the script active before, null when none was.

  • BREAKING: Changed flag add|set|remove and message copy|move|delete given ids the mailbox does not hold to print each as a message-not-found entry and exit 3, the others acted on ([#777]).

  • BREAKING: Changed a send whose follow-up failed to print its receipt and exit 3: a copy refused after the send and a reply's answered flag are item errors of the receipt.

  • BREAKING: Changed a JMAP, Gmail or Microsoft Graph message read, and the source read of message reply|forward and attachment list|download, to fail message-not-found when the mailbox given does not hold the message.

  • BREAKING: Changed envelope list and envelope search on Maildir and mbox to list a message holding no header field as a message-unreadable entry, exiting 3.

  • BREAKING: Changed envelope list and envelope search to refuse --page 0, which listed every envelope: --page-size 0 lists the whole mailbox.

  • BREAKING: Changed --no-save of message compose, reply and forward to require --send.

  • BREAKING: Changed -f/--flag of message add, imap append, imap store, maildir message add and mbox message add to take one value per occurrence: repeat -f for several flags.

  • BREAKING: Changed message add|send, the protocol saves, sieve put|check, jmap query and envelope search to read an option after their positional as the option, where it became message, script or query text.

    A word opening on a hyphen goes after --.

  • BREAKING: Changed maildir flag set and mbox flag set to require at least one -f, where mbox flag set without one cleared every flag.

  • BREAKING: Changed maildir message add to refuse -f with --subdir new, its default: pass --subdir cur.

  • BREAKING: Changed --no-save on a Microsoft Graph send to fail before connecting with capability-missing, Graph filing every message it sends in Sent Items.

  • Changed a Microsoft Graph send to ignore --save and message.send.save-copy, and message add or a composer's save without --send there to fail before connecting with capability-missing.

  • BREAKING: Changed mailbox list on Microsoft Graph to leave total and unread null without --counts.

  • BREAKING: Changed message read --seen on pimdir to fail when the \Seen cannot be staged, where it read the message unseen and exited 0.

  • Changed mailbox list --counts to list a mailbox whose counts could not be fetched without them, beside a mailbox-unreadable entry.

  • Changed IMAP flag writes to refuse a keyword the mailbox's PERMANENTFLAGS does not allow, coded capability-missing.

  • Changed message delete on an account with neither mailbox.alias.trash nor a mailbox the backend marks as the trash to fail with capability-missing before moving anything.

  • Changed a --backend naming a block the account does not configure to fail with capability-missing.

  • Changed a JMAP send to fail with capability-missing before uploading anything when the server lacks urn:ietf:params:jmap:submission.

  • Changed every build carrying a mail transport to parse the same unified commands, refusing those it cannot serve with capability-missing.

    json-schema no longer varies with the backends compiled in.

  • Changed the shared send over SMTP to connect for each send and close after it.

  • Changed smtp send to check --mail-from and --rcpt-to as RFC 5321 mailboxes when the command line is read.

  • Changed a PLAIN or SCRAM password to be prepared with SASLprep (RFC 4013) before it is sent or derived from.

  • Changed the Gmail listings and writes to batch their requests, 50 messages a request, where they sent one request per message.

    A throttled part is sent again up to three times; a message Gmail refuses is an errors entry, the others listed or written.

  • Changed the Microsoft Graph writes to patch, copy, move and delete through $batch, where they sent one request per message and stopped at the first failure.

    Each message Graph refuses is an errors entry coded by its status, the others written.

  • Changed the JMAP listings to report an email or a mailbox that does not deserialize as an errors entry, where the whole command failed.

  • Changed message send --save, message add --send and a composer's --send --save on Gmail to label the message Gmail filed under SENT, rather than insert a second message.

  • Changed an IMAP account on iCloud to sort client-side when imap.sort.fallback is unset.

  • Changed the subject and display names of an IMAP envelope to be decoded as message read decodes a header, raw 8-bit bytes that are not UTF-8 reading as Windows-1252.

  • Changed message read to unwrap a format=flowed text part (RFC 3676), and a reply to quote it unwrapped.

  • Changed message read to read malformed but common mail: raw 8-bit headers, a character split between encoded words, UTF-8 labelled us-ascii, an invalid Content-Type.

  • Changed UTF-7 (RFC 2152) text to be shown as written.

  • Changed the size attachment list reports and the bytes attachment download writes to be the part's decoded bytes in its own charset, an attached message written alone.

  • Changed the root Maildir to list as INBOX with the inbox role, or . when a top-level inbox folder takes the role, where it listed under its folder's basename.

  • Changed a Maildir mailbox to be taken by its name, its absolute path, with . segments or a trailing slash, every spelling resolving to one id.

  • Changed a mailbox.alias.<role> naming no mailbox id to mark the role of the listed mailbox carrying that name, on every backend.

  • Changed the mbox backend to refuse a keyword X-Keywords would not give back: holding a whitespace, a comma or a control character, or longer than 255 bytes.

  • Changed an mbox mailbox name holding a NUL or a . or .. level, or a level starting with . or ending in .lock, .lck or .msf, to be refused wherever a mailbox is taken.

  • BREAKING: Changed the pimdir backend to pimdir storage-v1, sync-v1 and search-v1 (io-pimdir 1.0.0): a store an earlier release wrote is refused store-version and its index index-version, never migrated.

    Sync it with the neverest that wrote it until pimdir queue list lists nothing, move its directory aside, then let a v1 neverest sync a new store (MIGRATION.md).

  • Changed a pimdir store a later release wrote to be read while its read_version is at most 1, judged by its store_meta alone.

  • Changed a pimdir message copy or message move into a mailbox its source does not sync to be applied under a source syncing it, and to park when none does (pimdir SYNC §7).

  • Changed a pimdir store whose directory or pimdir.db another user can read to be refused with store-exposed: chmod 700 the directory and chmod 600 pimdir.db.

  • BREAKING: Changed the pimdir queue rows to print row, the integer row id, with handle beside it, the row under the store's identity, where they printed queueId.

    pimdir queue show and queue cancel take the handle, checked against the store, or the bare row id.

  • BREAKING: Changed pimdir queue list to list the whole account, -m/--mailbox narrowing it to one, where it listed the inbox when -m was omitted.

  • BREAKING: Changed pimdir queue list to print {actions, parked, errors, refused}, each row {row, handle, kind, collection, linkId, itemId, producer, queuedAt, attempts, unconfirmed, error, subject}.

    Every pending row is listed whatever its kind, the parked ones with why, a row that does not decode under errors (exit 3), a change a server refused for good under refused.

  • Changed pimdir queue cancel to take a parked row and print its kind and unconfirmed, refusing a row it cannot cancel before asking.

  • Changed the pimdir writes to be refused before they are queued when a source of the store does not support them, naming the capability, the source and why.

    A send is refused while several sources can send and none is chosen, and coded no-performer when no source syncs the mailbox.

  • Changed flag add, flag remove and the \Seen a read stages on a pimdir account to state the flags they were read from, so a flag a sync changes meanwhile survives.

  • Changed a message delete or message move queued on a pimdir message a sync left in conflict to be parked by the sync engine rather than applied.

  • Changed a pimdir send asking for a copy to carry it in the queued send, so the copy is filed only once the message is sent.

  • Changed message add and a composer's save on a pimdir account to refuse a message whose Message-ID the mailbox holds or has queued, coded item-duplicate.

  • Changed message copy and message move on a pimdir account to fail for a message whose body is not local when the account does not sync the target mailbox yet.

  • Changed envelope list and envelope search on a pimdir account to read only what the page needs, where they read every message of the mailbox.

Deprecated

  • Deprecated -i for --inline on attachment list and attachment download, -i meaning --interactive across the family: the help shows --inline alone, -i still taken as a hidden alias.

Removed

  • BREAKING: Removed the configuration wizard: bare himalaya running it, the configure command (alias wizard), the wizard cargo feature and the himalaya-configure JSON Schema.

    Write the configuration from config.sample.toml, as the first-run welcome shows.

  • BREAKING: Removed the m2dir backend: the himalaya m2dir commands, -b m2dir, the m2dir cargo feature and its JSON Schemas.

    An m2dir block is refused as an unknown key: move to a Maildir or a pimdir store.

  • BREAKING: Removed the *.list.table.*-color options, table.preset and table.arrangement.

    The table, attachment and top-level account blocks are refused as unknown keys.

  • BREAKING: Removed the envelope.list.table.unseen-char, replied-char, flagged-char and attachment-char options, the envelope.list.table block being refused as an unknown key.

  • BREAKING: Removed envelope.list.datetime-relative ([#510]), now refused as an unknown key.

  • BREAKING: Removed the HIMALAYA_CONFIG environment variable: pass -c "$HIMALAYA_CONFIG", one -c per path.

  • BREAKING: Removed -w/--max-width from envelope list, envelope search and mailbox list, nothing being truncated anymore.

  • BREAKING: Removed tmp from the --subdir values of maildir message add|copy|move.

  • BREAKING: Removed deleted, deletedStorage and highestModSeq from imap status, which never requested them and printed them null.

Fixed

  • Fixed a mid: search over IMAP finding nothing on iCloud: the id is sent in angle brackets, as is the UID lookup of an APPEND answered without APPENDUID.

  • Fixed envelope list over JMAP leaving the order to the server: it asks for the newest first, as envelope search does.

  • Fixed a message copy or message move on a pimdir account joining a second message into a mailbox another source holds it in already.

    It needs a neverest on the same io-pimdir.

  • Fixed the text error report writing the control characters of its causes raw to the terminal.

  • Fixed --log-file creating the file under the umask and following a symbolic link: it is created at 0600 and a link is refused.

  • Fixed himalaya manual printing vv<version>, leaving out the pages of the nested commands and pointing SEE ALSO at pages it did not write.

  • Fixed a configuration parse error printing its TOML source line, and a refused secret echoing its value.

  • Fixed a failing secret command saying nothing: it names its program and exit status, never its output ([#745]).

  • Fixed a tls.cert that cannot be opened failing with a bare No such file or directory: the command fails before connecting, naming the file.

  • Fixed install.sh exiting 127 after a successful install and saving an HTTP error page as the archive.

  • Fixed a JMAP date search missing mail whose Date: carries an offset east of UTC.

  • Fixed message read, attachment list|download, message reply and message forward on IMAP sending SELECT sent for a role: the mailbox resolves as envelope list resolves it.

  • Fixed the Gmail envelopes splitting an address header on a comma inside a quoted name ("Doe, John" <john@x.org>).

  • Fixed gmail labels update clearing the label's colour and visibility.

  • BREAKING: Fixed the IMAP ENVELOPE group markers printing as addresses in envelope list, envelope search and imap fetch: To: undisclosed-recipients:; lists no recipient.

  • Fixed attachment download writing parts before refusing an id the message does not hold, and failing on a name past 255 bytes, now cut at a character boundary.

  • Fixed attachment download keeping control and bidirectional formatting characters in a file name, which can disguise an extension, and naming a part . . as ..

  • Fixed attachment download creating its files readable by others: they are created 0600.

  • Fixed attachment download following a dangling symlink, or overwriting an existing file once the name suffixes ran out.

  • Fixed attachment download without an id writing the inline parts attachment list leaves out: they are written with the new --inline only.

  • Fixed saving the mbox cache taking time quadratic in the mailbox.

  • Fixed the mbox envelope cache being readable by every user of the host: its directory is kept at 0700 and its files at 0600.

  • Fixed a Maildir write reading the folder once per id: one read looks them all up.

  • Fixed the Maildir and mbox listings holding every message of the mailbox in memory.

  • Fixed each JMAP blob download on another host running the credential command again and opening a new connection.

  • Fixed every Microsoft Graph command naming a mailbox listing the whole folder tree first.

  • Fixed a Gmail search flattening an and under an or into alternatives: an alternative holding more than one term is wrapped in parentheses.

  • Fixed envelope list|search --page-size 0 on Gmail reading the first 100 messages and on Microsoft Graph 10: every page is read.

  • Fixed pimdir queue cancel cancelling a row of another account or app sharing the store.

  • Fixed pimdir queue cancel reshaping the store's schema to Himalaya's io-pimdir revision, dropping what another app's revision keeps.

  • Fixed imap raw panicking on a literal holding a byte that is no UTF-8, and splitting such a literal into responses.

  • Fixed a mistyped path, such as one holding a colon, being stored as a message by message add and the other commands taking a message: a value naming no file must open on a header field.

  • Fixed sieve activate "" deactivating every script: an empty name is refused, sieve deactivate deactivating.

  • Fixed a move onto its own mailbox writing anyway on mbox, Maildir, IMAP and pimdir: it changes nothing and counts the messages.

  • Fixed a Date: naming the wrong weekday reading as no date on Gmail and misplacing the message in IMAP's client-side date sort.

  • Fixed mailbox list --counts on Microsoft Graph counting a folder's contacts and events with its messages.

  • Fixed an IMAP message delete in the trash that found no id reporting flagged and advising an expunge ([#814]).

  • Fixed an IMAP listing dropping a message whose FETCH line does not decode: it is listed with the items that decoded, beside a message-unreadable entry ([#801]).

  • Fixed a Maildir listing skipping an unreadable message file or folder with a warning only: each is a message-unreadable or mailbox-unreadable entry.

  • Fixed the Microsoft Graph lookups counting every 400 as an id or a folder not found.

  • Fixed a send over SMTP running again the credential command the IMAP block already ran ([#813]).

  • Fixed a send taking from its headers an envelope address holding a control character or a line break: it fails naming the address before anything is written.

  • Fixed scram-sha-256 on IMAP and SMTP failing as an unsupported mechanism.

  • Fixed an IMAP answer holding lines that do not decode being printed as whole: a warning counts the skipped lines, and a server ALERT is logged.

  • Fixed an IMAP command line holding a literal being sent before the server's go-ahead.

  • Fixed an IMAP greeting carrying a literal panicking.

  • Fixed IMAP commands failing to decode a NO with UTF-8 in its text, such as Dovecot naming a non-ASCII mailbox.

  • Fixed mbox writes and listings failing, or editing the wrong bytes, on an index another client made stale: the index is rebuilt and the operation tried once more.

  • Fixed a JMAP send the server refused leaving the imported message in the drafts mailbox.

  • Fixed a JMAP send saying nothing when the server sends the message but leaves it in the drafts: a warning says so.

  • Fixed a JMAP submission refused as tooLarge, forbidden, overQuota or rateLimit reading as unknown.

  • Fixed a Gmail label type or setting value Himalaya does not know failing the whole answer.

  • Fixed message read printing unquoted a MIME parameter value that is no RFC 2045 token.

  • Fixed mailbox list --counts on pimdir leaving unread null.

  • Fixed malformed multiparts reading with the wrong structure, such as three attached messages read as one; part ids follow the corrected structure on such mail.

  • Fixed a header field whose name holds a blank being read as the field it spells, and a body line being read as From: after an unusual Date zone.

  • Fixed flag add|set|remove with answered or draft on Gmail and Microsoft Graph, and message add -f answered|draft on Gmail, reporting success while changing nothing: they fail with capability-missing.

  • Fixed flag set on Gmail failing whole by naming the DRAFT label.

  • Fixed Gmail date clauses being off by a day: each bound is sent as the Unix seconds of the UTC day.

  • Fixed a JMAP date clause under not or or being checked as if it stood alone: it reads the server's received date.

  • Fixed hasAttachment reading differently per backend: IMAP, Maildir, mbox and pimdir follow one rule ([#802]).

    Any disposition but inline counts; with none, a part counts unless text, multipart or named by a Content-ID; a signature or an encrypted part never does.

  • Fixed account list never naming pimdir among an account's backends.

  • Fixed account check refusing an account declaring only a pimdir block: the store is opened, its mailboxes listed and a producer probed.

  • Fixed a pimdir add or send writing its body before the store accepted the write, so a collector could delete it or a refused write leave it behind.

  • Fixed body search clauses never matching on a pimdir account.

  • Fixed a pimdir flag change queueing a row for a message that already shows the result.

  • Fixed flag add and flag remove on a pimdir account replacing every flag of a message whose flags the sync engine never read: they fail saying so.

  • Fixed flag remove on a pimdir account missing a flag the store holds in another spelling (\seen, Thunderbird's Junk).

  • Fixed a pimdir write on several messages staging the first ones before failing on a later one: the rows are one batch, all staged or none.

  • Fixed Maildir mailboxes being named by their last path segment: they are named by their path relative to maildir.root (himalaya-tui#22).

  • Fixed control and bidi characters from messages and servers reaching the terminal through the plain output.

  • Fixed pimdir queue details in the unified outputs: envelope list reports no queued count and a send prints no queueId, pimdir queue list showing what is queued.

  • Fixed message compose, reply and forward writing a Message-ID on the machine's hostname: it sits on the domain of the From address.

  • Fixed message copy|move on IMAP without MOVE reporting a copied message as not found when the COPYUID cannot be read, such as Mailo's UIDVALIDITY 0 ([#781]).

  • Fixed a raw message piped on stdin being cut at its first line that is not valid UTF-8 and still reported as sent or saved: stdin and message files are read whole as bytes ([#786]).

  • Fixed the plain output of the writes, sieve get|list|capability and jmap query not ending with a newline, and jmap email parse running its bodies together ([#777]).

  • Fixed the envelope search query errors carrying ANSI colour escapes, even inside the --json error string.

  • Fixed message delete in a JMAP trash destroying an email other mailboxes held too.

  • Fixed the writes on JMAP, Gmail and Microsoft Graph acting on an id of another mailbox: an id counts only when its message is in the mailbox given.

    On Graph, message delete -m trash given the id of a message in another folder deleted it for good.

  • Fixed message delete in the trash reporting every id given as deleted: it counts the ids the trash held.

  • Fixed flag add|set|remove and message copy|move|delete running on no id, and acting twice on a repeated one.

  • Fixed Maildir and mbox writes given an unknown id among known ones failing part-way: every id is looked up before the first write.

  • Fixed a Maildir store listing failing on a plain file beside its folders (dovecot-uidlist), and listing phantom mailboxes through a symlink back to a folder.

  • Fixed the Maildir info flags being written out of ASCII order (:2,SF for :2,FS), and an experimental :1, info section being read as flags.

  • Fixed a missing maildir.root or mbox.root listing as an empty store: it fails naming the root.

  • Fixed the Maildir and mbox mailbox writes taking a blank name or one holding a control character, and creating over or renaming onto an existing Maildir.

  • Fixed maildir delete and a Thunderbird-layout mbox delete removing the mailboxes held under the one deleted, and the Maildir root being deletable: both are refused.

  • Fixed a Thunderbird-layout mbox rename orphaning the .sbd directory of its children: it moves with the mbox.

  • Fixed an mbox flag write leaving Thunderbird's X-Mozilla-Status and X-Mozilla-Keys out of step.

  • Fixed mbox reads carrying the Status, X-Status, X-Keywords, X-Mozilla-* and Content-Length fields the store writes, so message read --raw gives back the message added.

  • Fixed the mbox commands deleting or renaming the spool the mail system delivers to: it is refused, as IMAP refuses it for INBOX.

  • Fixed INBOX on mbox without mbox.inbox addressing a missing file of that name below the root: it fails naming mbox.inbox.

  • Fixed mbox listing and appending to files that are no mbox: a non-empty file not opening on a From_ line is left out and refused.

  • Fixed an mboxcl or mboxcl2 Content-Length running past a message boundary merging the messages after it under one id.

  • Fixed a busy mbox lock failing uncoded: a lock held past mbox.lock.timeout fails store-busy, and a denied dotlock names mbox.lock.dotlock = false.

  • Fixed message delete on Maildir moving the trash's messages to the trash again when the trash was named by path or alias.

  • Fixed a copy or move between Maildirs carrying dovecot keyword letters verbatim: with maildir.keywords.dovecot they are renamed through the target's file.

  • Fixed a Maildir that cannot be searched reading as missing cur/ subdirectory: the permission error names the path.

  • Fixed the local body search clause matching case-insensitively in ASCII only.

  • Fixed the client-side sort of Maildir, mbox, pimdir, Gmail, Microsoft Graph and IMAP's fallback to follow RFC 5256: base subject, first address's mailbox, case ignored.

  • Fixed an IMAP keyword search naming a registered keyword in another case being sent as typed: junk sends KEYWORD $Junk.

  • Fixed IMAP searches negating a group or an address clause, which iCloud answered wrongly: negations are pushed onto single keys.

  • Fixed a UID Fastmail's SORT lists twice being listed twice.

  • Fixed imap list sending a non-ASCII pattern unencoded and an LSUB pattern unquoted, which iCloud refuses.

  • Fixed imap fetch --structure printing the server's uppercase MIME types.

  • Fixed imap copy and imap move saying the messages were copied or moved when no COPYUID said so.

  • Fixed imap thread on a server without the algorithm's THREAD= capability failing with a parse error: it is refused with capability-missing.

  • Fixed a JMAP write failing whole on one refused id: each is an errors entry coded by its SetError type, the others written.

  • Fixed message add, a save and a send on a JMAP server forbidding duplicates (Fastmail) failing on bytes the account holds: the existing email is filed or submitted.

  • Fixed the JMAP set and method errors dropping the type, description and arguments the server sent.

  • Fixed setting the JMAP vacation response on Fastmail failing after the update was applied.

  • Fixed a JMAP mailbox name matching none being sent to the server, and one two mailboxes carry resolving to the first: both are refused.

  • Fixed jmap email read printing server values unsanitized and running two emails together.

  • Fixed the JMAP query commands returning the objects in the server's order rather than the query's.

  • Fixed jmap email update dropping the patches a replacement overrode and accepting no change: both are refused.

  • Fixed a Gmail search pattern widening the search with the operators it held: each pattern is a literal.

  • Fixed a Gmail reply or forward added or sent outside its thread: it carries the parent's threadId.

  • Fixed a Gmail mailbox naming no label failing with Gmail's error: it is refused naming the value.

  • Fixed the Gmail snippets printing their <b> marks and HTML entities.

  • Fixed Gmail ids, label ids and addresses reaching the request paths unencoded.

  • Fixed the Microsoft Graph roles dropping at random, -m sent then reaching Graph as a folder id.

  • Fixed mailbox list on Microsoft Graph leaving out the nested folders and every folder past the first page: a nested one is named by its path (Projets/Alpha).

  • Fixed a Microsoft Graph mailbox naming no folder being sent into the request path: it is refused, and every id is percent-encoded.

  • Fixed the Microsoft Graph envelopes being dated by arrival: the date is the Date: header, else the arrival.

  • Fixed a Microsoft Graph search pattern holding KQL syntax widening the search: each word is a quoted KQL phrase, a phrase one quoted string.

  • Fixed flag set on Microsoft Graph leaving the categories it did not name.

  • Fixed msgraph messages list --search failing on a value holding : or -.

  • Fixed msgraph attachments list listing the first page alone: it follows every next link.

  • Fixed an attached message/rfc822 being written base64, which RFC 2046 forbids, and a forward dropping the Content-Type parameters of the source's attachments.

  • Fixed a composed single-part message not ending with a line break, a quoted empty line carrying a trailing blank, and the reply or forward JSON template carrying CRLF line breaks.

Security

  • Bumped rustls to 0.23.46, fixing RUSTSEC-2026-0346 to RUSTSEC-2026-0349: TLS secrets exposed by Debug, a downgrade to classical key exchange, and an unbounded certificate decompression.
  • Bumped ctutils to 0.4.6, rustls-webpki to 0.103.16 and webpki-root-certs to 1.0.11, fixing RUSTSEC-2026-0382, RUSTSEC-2026-0383 and RUSTSEC-2026-0385.
  • Fixed IMAP LOGIN and AUTHENTICATE logging credentials at trace level.
  • Fixed a server making Himalaya buffer without end: an HTTP response head is capped at 64 KiB, a body at 256 MiB, and a STARTTLS response line is capped too.
  • Fixed a SCRAM server announcing fewer than 4096 or more than five million iterations being accepted.

Don't miss a new himalaya release

NewReleases is sending notifications on new releases.