Skip to content

v1.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Nov 14:54
v1.0.0
83115f3

Neverest 1 is rebuilt around the pimdir store: every account syncs into one shared store, which the Pimalaya frontends read, search and queue their writes into. It syncs mail, contacts and calendars over IMAP, Gmail, Microsoft Graph, Google Calendar, Google People, CalDAV and CardDAV. The wizard is gone, unknown keys are refused, and --json follows the Pimalaya output contract.

A 0.x configuration and state are not carried over: start over from config.sample.toml, move the 0.x stores out of neverest/ under the state directory, then run neverest sync --init.

The store follows pimdir storage-v1.0.0, sync-v1.0.0 and search-v1.0.0 through io-pimdir 1.0.0. A store a beta wrote is refused store-version, never migrated: sync it with that beta until nothing is queued, move it aside, then run neverest sync --init.

Added

  • Added sync --init, which initializes the accounts the run covers that are not yet initialized, then syncs.

    The result names them under initialized. A sync over an uninitialized account is refused, naming neverest init -a <name> and neverest sync --init -a <name>.

  • Added sync --queue-only, which applies what frontends queued in the store without reading a credential or opening an endpoint.

    A queued create gets its id at once, offline included, its rows under the result's queue. A store a sync holds answers busy (exit 4).

  • Added sync --intents-only, which performs what frontends queued (sends, collection changes, invitation replies and cancellations) and nothing else.

  • Added sync --declare-only, which records every collection the sources hold with its kind, name and role, syncing no item.

  • Added the search cargo feature, on by default, which builds the store's search index (index.db) that frontends query.

    A sync refreshes it last for at most store.index-timeout (60 seconds by default, "0" turning it off), reported under index. sync --index-only builds it whole, opening no endpoint.

  • Added mail.filter.since and sync --since <WHEN> (30d, 6mo, a date or an RFC 3339 instant), which bound mail by its Date header.

    Mail older than the floor is neither listed nor deleted. A wider scope later lists only the band it lacks on IMAP, Gmail and Graph.

  • Added paged mail listings, newest first, each page's bodies downloading as it lands.

    Mail is readable before its mailbox is listed, and an interrupted run resumes where it stopped.

  • Added sync --prime <N>, sync --bodies <all|listed> and sync --download-order <largest|newest>, which make recent mail readable early on a large account.

  • Added a back-off on throttling for Microsoft Graph, Gmail, Google Calendar, Google People, CalDAV and CardDAV.

    A source throttled past sync --max-wait (120 seconds by default) gives up for the run and is reported under throttled.

  • Added gmail.units-per-minute (6000 by default), gmail.batch-size (10, at most 100) and gmail.batches-in-flight (1).

  • Added a guard on mass absences, reported under absences (exit 3).

    A listing leaving out more than half of at least 20 items, or naming none while the collection held some, drops nothing. sync --accept-absences confirms such absences for one run.

  • Added the holding of a change a server refuses for good, reported by every run as a refusals error (exit 3).

    An HTTP 4xx naming the request or an IMAP NO [CANNOT] or [TOOBIG] holds it in the store, pushed again only once the item changes.

  • Added a clean stop on SIGINT and SIGTERM: sync lets what is in flight land, prints its result with interrupted set and exits 4.

    A second signal ends it at once (130).

  • Added collection roles and capabilities to the store.

    Each source records the role a server states for a collection (inbox, sent, drafts, trash, junk, archive, default and others) and what it can push, so a frontend refuses an unsupported action before queueing it.

  • Added the collection-create, collection-rename and collection-delete intents on IMAP, Gmail, CalDAV and CardDAV.

    Each intent neverest performs leaves a receipt the frontend that queued it reads.

  • Added the calendar-reply and calendar-cancel intents on Microsoft Graph and Google Calendar.

  • Added the sent copy: a queued submit asking for copy files the message there once sent.

    Gmail labels the sent message instead. Graph files sent mail in Sent Items alone, so a copy asked elsewhere is refused when queued.

  • Added native sending on Gmail through messages.send, so a Gmail account needs no smtp table.

    An smtp table, under the account or the source, still sends in its place. The token needs the gmail.send or the https://mail.google.com/ scope.

  • Added Microsoft Graph mail moves, copies and adds into Drafts.

    Graph creates a message in Drafts alone, so a frontend refuses an add elsewhere up front.

  • Added the push of a recurring event's overrides and cancelled occurrences to Microsoft Graph and Google Calendar.

    An override neither provider can take is refused, coded unsupported.

  • Added online meetings on push: an event carrying X-PIMDIR-ONLINE-MEETING:TRUE gets a Google Meet or a Graph online meeting.

  • Added attachment stand-ins: a landed message body records one bodiless file per attachment in the account's attachments collection.

  • Added CalDAV moves through WebDAV MOVE, a server without it getting a create then a delete.

  • Added collection.rename and collection.capped to every backend table.

    collection.rename says whether a frontend may rename a collection (false on a one-way account by default). collection.capped marks a server listing at most a number of items, so what it leaves out is kept.

  • Added proxy.url, proxy.username and proxy.password at the account, under every backend table and under smtp.

    Without them, the all_proxy and https_proxy environment variables apply.

  • Added an account-level tls table, inherited field by field by every backend's and every smtp's tls table.

  • Added tls.client.cert and tls.client.key under every backend table and smtp, a client certificate for mutual TLS.

  • Added imap.sasl-ir, imap.id.auto and imap.id.fields.

  • Added carddav.home and caldav.home, the home set as a URL with nothing discovered.

  • Added auth = "none" to CardDAV and CalDAV, the default of a table with no auth.

    A 401 then says no auth is configured.

  • Added progress events to sync --json, one line each before the result, described by the neverest-sync.events schema.

    Read the last line, or skip the lines carrying event.

  • Added a stable code to the JSON failure object and to every failing row, described by the neverest-error schema.

    Codes include store-version, store-layout, store-exposed, backend-not-built, account-missing, account-uninitialized, conflict-not-found, item-duplicate, permission-denied, quota-exceeded, rate-limited, recipient-refused and usage-invalid.

  • Added account list (alias ls), listing the accounts with the backend tables each writes, those this build leaves out under notBuilt.

  • Added coverage, downloaded, unsettled, unreadable, overruled, unanswered, waiting, disagreed, unlisted, forbidden, clipped and intents to the sync report.

  • Added direction to the add-flags, remove-flags and delete hunks.

    pull is a server change the store took in, push one the run applied on that server.

Changed

  • BREAKING: Changed every account naming no store.root to share one store, neverest/ under the state directory.

    Collection ids carry the account (work/imap/INBOX), so a frontend reads every account from one store. An account name holding / is refused.

  • BREAKING: Changed -a into a repeatable filter, every command running over every account without it.

    conflict show, conflict resolve and sync --reset need exactly one account. An account that fails is reported and the next one runs (exit 4); a bare conflict list names those it skipped as uninitialized under uninitialized.

  • BREAKING: Changed the exit statuses to the Pimalaya contract: 2 a refused command line, 3 a run that left something for a person (2 in 0.3.0), 4 a run that could not do all its work.

    Under --json, a refused command line prints the failure object coded usage-invalid.

  • BREAKING: Changed the --json results of sync, init and account check to list every account under accounts, a sync's report under .accounts[].report.

  • BREAKING: Changed every --json output to print every key it declares (an empty list as [], an absent value as null), one value per line when piped.

  • BREAKING: Changed a sync report's patches into the collectionPatch and itemPatch arrays of the hunks applied.

  • BREAKING: Changed every failure of a sync report into one row of errors, tagged by kind.

    A row is pimalaya-cli's item error {id, code, error, sources} then the keys its kind needs. The kinds are collection-patch, item-patch, failures, rejected, duplicates (0.3.0's refused), refusals, submitted, intents and unreached.

    A rejected, duplicates or refusals row and a parked send or intent exit 3, any other row 4.

  • BREAKING: Changed a parked queue row, of a sync and of sync --queue-only, to read as pimdir queue list prints a row.

    Its keys are row (was id), handle, kind, collection, linkId, itemId, producer, queuedAt, attempts, unconfirmed and error.

  • BREAKING: Changed the conflict commands to print an item's id as a string and its handle on the source as remoteId.

    conflict show --json prints each body as {contents, encoding}: the text when it is valid UTF-8, its base64 otherwise, null when absent. A sync report's conflict row prints the id conflict resolve takes and the collection as conflict list spells it.

  • BREAKING: Changed the conflicts to include an item's own conflict, when two endpoints of an account disagree.

    conflict list, show and resolve name it with source and remoteId null, a run merges it against the body the endpoints last agreed on, and outstandingConflicts counts it.

  • BREAKING: Changed check into account check, check staying a hidden alias.

    It checks every endpoint and exits 3 when one does not answer, where it failed on the first. orphans lists the accounts the store holds that the configuration no longer names.

    Each account lists its endpoints under backends (was sources), each row {backend, ok, code, error, tls} then source, collections with their roles, capabilities and smtp (opened without sending), then the account's mode.

  • BREAKING: Changed the configuration to refuse every key neverest does not read, at every level, every key an earlier neverest read included.

  • BREAKING: Changed Microsoft Graph to one msgraph table, its domains under msgraph.mail, msgraph.contact and msgraph.calendar.

    The msgraph-contacts and msgraph-calendar tables are gone. Each domain is a source named msgraph-mail, msgraph-contact or msgraph-calendar; an msgraph table naming no domain is refused, so add msgraph.mail = true to sync mail.

  • BREAKING: Changed pool-size into a key of the Graph domain tables alone; IMAP connections are bounded by connections.

  • BREAKING: Changed conflict.merger into contact.merger and calendar.merger, written once above the accounts.

    An account naming its own overrides it. conflict resolve --interactive runs the merger of the conflict's kind, and refuses naming the key when that kind has none.

  • BREAKING: Changed the dav cargo feature into carddav and caldav.

  • BREAKING: Changed -c to take one path, repeated to merge several files in order, where it split one value on :.

  • BREAKING: Changed collection.delete to default to false.

    Set it on each endpoint whose collection deletions should reach the other.

  • BREAKING: Changed a target's smtp table into a configuration error.

    An account sends through a source, and a queued send naming a target parks.

  • BREAKING: Changed a configured host that is not ASCII into a load error naming its Punycode form (xn--...).

  • BREAKING: Changed a store another user can read to be refused (store-exposed).

    chmod 700 its directory and chmod 600 its pimdir.db.

  • BREAKING: Changed submission to at-most-once.

    A send that may have been delivered despite failing parks as unconfirmed and is never sent again, a run killed mid-send included. A submit naming its sending source is sent by that source alone, and one without a recipient parks.

  • BREAKING: Changed sync --reset to refuse while the account holds work no server has.

    A queued or parked action always refuses it. Conflicts, unpushed changes, retained items and items holding local properties (a label) refuse it unless --force drops them.

  • BREAKING: Changed the text output to plain lines on stdout before the result, with no spinner and no colour.

    A full sync prints its progress to a pipe too, a download once per percent; account check, init, sync --queue-only and sync --index-only print it on a terminal alone. Scripts read --json, whose last line is the result.

  • Changed init to add an account to the shared store, creating it when there is none, and to leave an initialized account as it is.

  • Changed a run over a store another run holds to report its accounts busy and exit 4 after the bounded wait.

  • Changed completion, manual and json-schema without their names or --dir into a refused command line (exit 2, coded usage-invalid).

  • Changed a bare neverest without a configuration to fail (exit 1), showing a person at a terminal the commands creating one from the shipped sample.

  • Changed config.sample.toml, rewritten and shipped as share/doc/neverest/config.sample.toml.

  • Changed a frontend's edit or move queued over an unsettled conflict to park, naming the conflict.

  • Changed a Gmail source to refuse a keyword other than $Important before it is queued, where Gmail dropped it.

  • Changed Google Calendar writes to notify the attendees (sendUpdates).

  • Changed Google and Graph conference links into standard CONFERENCE properties (RFC 7986).

  • Changed syncs to read less from Microsoft Graph, Gmail, Google People, Google Calendar, CalDAV and CardDAV.

    Graph opens three connections (or pool-size), Gmail reads a message once a run whatever its labels, and Google People reads 200 contacts a request. A settled collection, a quiet Gmail label or a DAV collection whose sync token has not moved is listed once a run, or not at all.

  • Changed store.root and tls.cert to expand $VAR as well as ~.

  • Changed a failing secret command's error to end with ", run <command> yourself to see why".

Removed

  • BREAKING: Removed the configuration wizard: the configure command (alias cfg) and the offer a bare neverest made without a configuration.
  • BREAKING: Removed the default account key, now refused as unknown: -a names the accounts a command runs over.
  • BREAKING: Removed the mailbox, message and filters aliases of collection, item and collection.filter.
  • BREAKING: Removed the NEVEREST_CONFIG environment variable: pass -c.
  • Removed the NEVEREST_PROFILE profiler.

Fixed

  • Fixed an IMAP delete expunging every message marked \Deleted in its mailbox.

    It sends UID EXPUNGE on its UID, and a server without UIDPLUS gets no delete.

  • Fixed an IMAP SELECT answer without EXISTS being read as an empty mailbox, which deleted every message.

  • Fixed a listing cut short being read as complete, which deleted what it left out.

    This covers an IMAP row that does not decode, and a CalDAV or CardDAV answer truncated, cut short or listing a member with an error. It is reported as a failures error and the run exits 4.

  • Fixed a renumbered IMAP mailbox (a moved UIDVALIDITY) pushing flags to the wrong messages and dropping every message as deleted.

    It is rekeyed by link id, and the messages the rebuild finds new are reported added.

  • Fixed an IMAP server advertising QRESYNC and enabling nothing (iCloud) never bringing new mail, flag changes or expunges.

  • Fixed IMAP moves on servers advertising no MOVE, such as OVH (#35).

    The move is a UID COPY then the expunge of the source UIDs alone; a server without UIDPLUS refuses it before any command.

  • Fixed an IMAP body download after a failed batch storing a message under another's handle.

    A message over 100 MiB is fetched alone, and an HTTP response over 256 MiB fails rather than being buffered.

  • Fixed an IMAP push aborting on every run over a message flagged \Junk, \Important or \Forwarded.

  • Fixed an IMAP append on a server without UIDPLUS being bound to another message whose Message-ID holds its own.

  • Fixed a message moved into an IMAP mailbox holding another with the same Message-ID being bound to that other message.

    A twin the store listed before the move still shows the moved message's body.

  • Fixed an IMAP relay that met a refused message failing its whole mailbox on every run.

    The message is reported rejected and the relay goes on. A body of another size than listed never completes its append.

  • Fixed CalDAV and CardDAV writes retried or misread every run: a delete of a member already gone, a 207 with a failed member, a UID holding :.

  • Fixed a body deleted between its listing and its download failing the run.

  • Fixed a write on an item already gone failing every run on Microsoft Graph, Gmail, Google Calendar and Google People.

  • Fixed a flag another client changed between a run's listing and its push being overwritten.

  • Fixed a collection deleted on the server staying in the store with its items.

    An account with no target retires it, reported as a retire collection hunk. One a queued or parked row anchors on is kept, reported waiting for a person (exit 3).

  • Fixed a collection new on the server landing in the store unreported: it is a fetch collection hunk.

  • Fixed a queued delete the server's edit overruled reading as applied: it is a delete-overruled item hunk.

  • Fixed a queued move reporting its create twice.

  • Fixed a move between address books or calendars reporting only its delete.

  • Fixed a flag kept in the store alone, on a card or a calendar item, reported as pushed on every run.

  • Fixed a write a source's rights forbid being listed as applied on every run: it is counted under forbidden.

  • Fixed a pair collection whose sync failed exiting 0 as "already in sync": it is a sync hunk with its error (exit 4).

  • Fixed failed store steps (reading or draining the queue, landing bodies, counting conflicts) leaving the result clean: each is a failures error (exit 4).

  • Fixed a text run whose every change failed reading as partially synchronized: it prints "not synchronized: 3 errors".

  • Fixed a dry run printing applied N queued action(s): it prints would apply N queued action(s).

  • Fixed sync --dry-run copying a store a frontend may be writing as files: its replica is one snapshot.

  • Fixed an edit made on a one-way target alone being pulled into the store, or parked as a divergence.

    The store's body is pushed back over it, the target's edit kept as a retained item under overruled.

  • Fixed two endpoints holding one UID under two bodies before their first sync ending with the source's body on both: it parks (#31).

  • Fixed sync --accept-mode being refused like the run it answers.

  • Fixed sync -m and sync -x unable to name an iCloud or Google calendar listed under an opaque id.

    An entry no id matches also matches the collections it is the display name of. A configured collection.filter still matches ids alone.

  • Fixed a target's collection.filter being ignored.

  • Fixed conflict resolve --interactive exiting 0 when the merger decided nothing: it prints aborted and exits 3.

  • Fixed conflict resolve and the conflict auto-merge misjudging their own result when another app's queued row parked in the same drain.

  • Fixed a merged event holding an alarm getting its SEQUENCE twice, once inside the VALARM.

  • Fixed a card or an event whose UID follows a blank line or a large inline photo being copied each way between two endpoints.

  • Fixed a message stored twice when its listing and its body key it differently (a commented or folded Message-ID, a field Graph decodes otherwise).

  • Fixed a second rekey or a delivered copy making another source remove a message from its server.

  • Fixed a queued move into its own collection deleting the item: it parks.

  • Fixed a joined mail binding not pushing its flags.

  • Fixed a locally edited contact or event losing its summary, and an item listed with the summary of a body it does not hold.

  • Fixed a refused offered create being pushed and refused every run: it is held as that source's pending create.

  • Fixed a hostile time zone rule aborting a calendar pull.

  • Fixed a recurrence rule's UNTIL shifted wrongly between UTC and a series zone only the time zone database knows.

  • Fixed Microsoft Graph recurring series failing to read over more than five years or with a numbered or noEnd range, or doubling their cancelled occurrences.

    An endless series starting earlier (a birthday Outlook stores from 1604) is listed under clipped with the date its exceptions are read from. Older exceptions keep their last synced body.

  • Fixed the date of a Microsoft Graph message, which was its arrival time: it is its Date header.

  • Fixed Microsoft Graph contact folders past the first page of 100 or below the second level going unread.

  • Fixed Microsoft Graph mail folders below the second level never syncing, and a top-level A/B colliding with the child B of A.

    A / in a folder name is escaped as %2F in its id.

  • Fixed an event deleted on a Graph calendar right after its creation coming back.

    An event without a description is created with no body. Exchange still rewrites one with a description a moment later.

  • Fixed an event at a floating time queued on a Google or Graph calendar being refused by every sync.

    It is anchored in the calendar's zone, else the user's, and a recurrence bound is written in UTC.

  • Fixed hidden Google calendars missing from the listing, so hiding one in the Google UI read as deleting it.

  • Fixed a Google contact update erasing what a vCard cannot show: an organization after the first, a relation other than spouse or child, a custom type.

  • Fixed a Google Calendar or Google People request written to a stream that failed during the one before.

  • Fixed a Google contacts listing answering a negative totalItems failing to parse.

  • Fixed a Google calendar that refuses every sync token, a public holiday one, warning at each run.

  • Fixed a delete or a move out of Gmail's Drafts or Sent being refused by Gmail on every run.

    A delete trashes the message, and a move other than to the trash is refused at once.

  • Fixed a send the SMTP server refused for a sending rate or quota being parked: it stays queued for a later run.

  • Fixed a credential command prompting for a password (systemd-ask-password) hanging the run.

  • Fixed a bare neverest --json printing the text help: it fails coded usage-invalid (exit 2).

  • Fixed install.sh saving an HTTP error page as the archive.

  • Fixed sync --reset refusing a mail account holding an attachment: the stand-ins of its attachments collection read as unpushed changes.

  • Fixed a CardDAV or CalDAV listing naming a member of another collection, as Stalwart lists a sibling address book's tombstone: it removed or changed the same-named member of the listed one. Such a row is now skipped with a warning.

  • Fixed a Graph mail move of a second message stating the same Message-ID into another folder, the trash included: the moved message was fetched as a second item while its create was uploaded again as MIME and refused on every run.

  • Fixed a Gmail move into another label waiting for the next listing: a message moved away on the server before it stayed listed in the label for good. A move now lands at once, Gmail keeping the message's id.

Security

  • Fixed text output printing what servers wrote raw (bodies, names, ids, refusal reasons): every text line and error report goes through the sanitizer.
  • Changed --log-file to create its file at 0600 and refuse a symbolic link.
  • Changed a TOML parse error to no longer print the source line, and a refused Secret to never echo its value.
  • Fixed RUSTSEC-2026-0346 to RUSTSEC-2026-0349 by bumping rustls to 0.23.46.
  • Fixed RUSTSEC-2026-0382, RUSTSEC-2026-0383, RUSTSEC-2026-0385 and RUSTSEC-2026-0387 by bumping crypto-bigint, ctutils, rustls-webpki and webpki-root-certs.
  • Fixed RUSTSEC-2026-0592 by bumping url to 2.5.9.