Skip to content

Release notes 4.1.0

Inboxora docs edited this page Sep 26, 2026 · 3 revisions

Release notes 4.1.0

Status: Released

Release date: 2026-09-25

Previous version: 4.0.4 · Type: minor

4.1.0 adds a native provider layer and redesigns the send/attachment limits around the transport that actually sends. A Microsoft account can run its mailbox, calendars and contacts over Microsoft Graph; a Google account can use the Gmail, Calendar and People APIs; every account that prefers it keeps working over plain IMAP/SMTP, including Google with an app password. Provider data can be written back to its source, and an existing Microsoft account is moved to Graph in place, without a second account and without copying or losing anything local.

Highlights

  • v2/v3 account and resource presentation correction. Settings now share compact account cards with metadata footers and a list-to-detail flow. Contact books and calendar collections remain distinct from their connection accounts. Integration configuration keeps vertically stacked disclosures and single-column credential fields; existing OAuth transports and secret handling remain in place. Mail editing retains one form across tabs and coordinates its Save/Cancel boundary with staged service changes. System group labels are translated semantically, without renaming user-created books or calendars.

  • Selection and color behavior. Group selection is one atomic array update, not repeated toggles over a stale snapshot. Contact visibility filters support an explicit empty selection and per-user persisted display/collapse preferences. A viewer can hide a remote/read-only book without being granted write-back or import access. Calendar colors distinguish the source color, a personal override and the resulting display color; preview/cancel/reset and the event reads use that distinction consistently, including the contact-dates calendar. Apply the existing 0138_calendar_color_overrides.sql after 0137_calendar_collection_projection_receipts.sql before running the corrected backend; no new migration is added here. Provider-native calendar operations retain their authorization and uncertain-operation safeguards. Creation/deletion of external DAV collections, Microsoft contact folders and Google groups is not added by this GUI correction. Validation supplied with the source bundle covers isolated components and pure helpers; whole-application typecheck, lint, i18n, tests, builds, migration checks and visual comparisons remain integration gates, not claimed completed by those isolated tests.

  • Prepared settings navigation is now reflected in the application. Mail account editing has provider-specific General, Services or Servers, and Diagnostics sub-tabs; Calendar and Contacts separate accounts, collections and import tools; Integrations shares the same accessible provider/application tab treatment. These are presentation and navigation changes only: they add no migration, configuration requirement or provider permission, and retain the existing synchronization and remote-deletion safeguards.

  • Settings account views follow one responsive visual hierarchy. Mail, Calendar and Contacts settings now lead with compact account/source cards, readable service status and an explicit management path; the mail overview has one prominent management action and secondary actions in an accessible compact menu. Calendar account details remain scoped to the selected source. A successful manual Calendar or Contacts run refreshes its account status immediately. Diagnostics exclude failures from retired, disabled, unlinked and tombstoned provider collections, but retain an error from any still-active collection, so a healthy account is not marked failed while a real live failure stays actionable. The settings panels retain their existing safe operations and work with the active application theme on compact screens. Integration cards stay vertically stacked and collapsed by default, keeping global OAuth setup distinct from adding a user's account. No migration or new provider permissions are required.

  • Google Calendar API remediation. A disabled-Google-API error is a Google Cloud project configuration error, not a mailbox or OAuth identity error. Enable Google Calendar API in the same project as the configured Inboxora OAuth client, wait for Google's configuration propagation, then use the account card’s Calendar refresh action. The card now shows the Google setup link and an account-scoped retry button for Calendar (and independently for Contacts when affected); a generic page refresh or reconnect is not presented as a fix for an API that remains disabled. Once the same collection finishes cleanly, its historical failure timestamp is cleared. Diagnostics also filter legacy collection rows that recorded a failure before a newer success, so Calendar and Contacts do not report a recovered error as current; a failure newer than its own collection's last success remains visible.

  • Account-native calendar lifecycle. Apply 0136_calendar_collection_lifecycle.sql after 0135_contact_provider_email_uniqueness.sql, then apply 0137_calendar_collection_projection_receipts.sql, before rolling out this backend. Canonical Calendar Settings can create a name-only Google/Microsoft calendar for the selected account and request deletion only through an explicit confirmation; the server resolves the provider, connection and remote identity, then rechecks default/shared/ownership protection before writing. A confirmed create starts with event write-back disabled. Every action journals a canonical account/connection intent and returns confirmed only after its local projection receipt completes; a pending response can be checked again with the same key, without a second remote mutation. Confirmed deletion records a tombstone before removing its local calendar/events, so stale discovery or an in-flight sync cannot recreate it. Tombstones outlive account/journal cleanup while their provider connection remains. Non-idempotent unknown or legacy pending attempts remain parked. A retryable result records generation-bound proof that the provider did not apply it, honours the later of configured backoff and provider Retry-After, and consumes that proof before exactly one later re-dispatch; a crash after the new dispatch returns to the unknown state rather than repeating the remote call. Verification includes mocked provider/UI flows and PostgreSQL fence, journal, projection-receipt and upgrade checks; no real provider writes were performed.

  • Calendar lifecycle groundwork (not yet a UI action). Account calendar diagnostics expose separate calendarManagement authorization: Google event scopes alone do not permit collection management, while calendar.calendars or full calendar and Graph Calendars.ReadWrite do. Existing event-write flags and ordinary consent requests are unchanged; the Google OAuth start route accepts explicit manageCalendars=1 only with purpose=calendar_enable, a selected owned account and non-read-only access. This adds calendar.calendars to the flow's stored requested scopes; partial provider grants retain only their actual current capabilities. Internal create/delete helpers protect default/primary and shared calendars using fresh provider metadata, reject ambiguous identity, and require a confirmed delete response. They are wired only through account-scoped lifecycle routes and canonical Settings after durable replay, local projection recovery and deletion fencing; local generic calendar routes remain unable to simulate provider collection deletion. The authorization evaluator and low-level HTTP helpers themselves require no migration; the durable fencing layer below does. No ordinary reconnect silently requests calendar-management consent. Verification: 61 mocked native lifecycle tests, 13 cancellation regressions, the complete backend suite (3,330 passed; environment-gated integrations skipped there), and the expanded CI PostgreSQL selection (602 passed) succeeded; strict typecheck, lint and backend production build passed. Account diagnostics now run explicitly in the PostgreSQL CI selection. No real provider writes were performed.

  • Cancellation follows provider requests. API clients compose caller signals with their own deadline rather than overwriting cancellation. Token refresh may still finish for its other consumers, but cannot dispatch a cancelled write or an extra 401 retry for this caller. This does not establish that an already-dispatched external write was rolled back; such outcomes must remain uncertain in the mutation journal.

  • Contact-book actions stay on their account. Management groups use connection/account IDs, not mailbox labels. The address-book list returns an account only when its ownership is unambiguous and belongs to the same provider connection; duplicate mailbox links no longer multiply books or counts. Unresolved legacy ownership disables per-book sync instead of invoking a provider-wide sync. Partial or failed account results remain explicit, and new contacts keep their captured writable destination through save-time capability revalidation. No additional migration is required for this presentation change.

  • Graph contacts upgrade repair. Apply 0135_contact_provider_email_uniqueness.sql after 0134_contact_local_email_keys.sql, before rolling out the contact-sync correction. The migration removes the surviving contacts_address_book_primary_email_idx from 0075; it leaves local e-mail learning keys and the non-unique lookup intact and does not delete contacts. Two remote contacts sharing an e-mail can then be projected separately. Graph's explicit default collection is synchronized independently rather than equated to an arbitrary discovered folder named “Contacts”; failures of additional folders are reported without suppressing the default read. Existing projection reconciliation is not a remote folder merge or deletion. Without proven provider alias identity, overlapping default/discovered collections remain separate local books. Verification used an isolated PostgreSQL instance: all 527 tests selected by the CI integration step and all 11 tests of the 4.0.4 upgrade gate passed; no live data was migrated.

  • Localization is an explicit release gate. Run cd frontend && npm run test:i18n before submitting UI changes. CI and GHCR/native publishers run it before publishing. It checks all nine locale catalogs, static/conditional translation calls (including English defaults), visible JSX/attribute/notification text, interpolation syntax and variable parity, and plural rendering without English fallback. Technical brands, protocol tokens and glyphs have exact reviewed exceptions; arbitrary computed runtime strings still require code review. English copies in conversation settings, missing contact-sync notices, provider sync counts and malformed placeholders are corrected. These checks require no migration; publishing an older revision without the gate requires backporting the gate rather than skipping it.

  • Forward and print labels follow the app language. Generated HTML header metadata and translated labels are escaped, and dates use the selected language. Subject transport conventions such as Fwd: remain unchanged.

  • One settings surface for calendars and contacts. Management buttons now open the corresponding Settings section. Calendar navigation separates Accounts from Appearance. Calendar hide/show affects only sidebar presence; event selection stays exclusively in the calendar rail. Local calendar/source lifecycle controls remain available; native provider collection creation/deletion is still restricted rather than simulated locally. Migration 0138_calendar_color_overrides.sql adds a per-user color presentation preference after 0137_calendar_collection_projection_receipts.sql; it does not change provider data or permissions. Provider-backed contact imports are explicitly refused; only local books accept local file imports.

  • Grouped v2/v3 management panels. Calendar account cards now transition to a detail screen instead of rendering list and detail together. Contacts shows an explicit multi-book display selector grouped by connection/account, including partial and empty selection states; the main contact query accepts the union filter while retaining the single-book compatibility parameter. The calendar rail has independent group collapse, group selection and a per-calendar color palette backed by the user presentation preference. These changes were verified with frontend typecheck/build, focused backend routes, migration integrity and i18n tests; full real-provider and live-production visual acceptance remain environment-gated.

  • Consistent, mobile-friendly settings. Gesture and conversation preferences use paired described choices. Provider integration cards start collapsed with concise setup guidance. Account overview includes Calendar/Contacts enablement and sync state. DAV endpoints wrap in compact text with individual copy feedback; account forms and provider services use consistent setting rows.

  • Crash-safe deferred native inbox rules. A Gmail or Microsoft message whose ingest projection lacks a body or headers needed by an inbox rule is recorded in the additive 0121_provider_rule_deferred_queue.sql queue before any block-list or rule action runs. The worker reads only missing data, with a lease and backoff for transient failures. 0124_message_header_completeness.sql distinguishes metadata-only headers from a complete header read; a confirmed empty body is evaluated as empty, while unavailable content remains unknown. 0125_provider_rule_deferred_dispatch.sql retains the record through the hand-off to an action journal and parks a lease lost after that boundary as outcome_unknown, rather than replaying an uncertain provider effect. Apply 0121, 0124, and 0125 in order before rolling out the worker.

  • Safe recovery of a legacy local message after Graph cutover. 0126_graph_legacy_message_bindings.sql records a confirmed alias from an old IMAP-era local message to its canonical Graph copy. Inboxora does not manufacture a Graph ID from an IMAP UID or RFC Message-ID: ambiguous matches stay visible for review, and cache is not deleted as a substitute for binding.

  • Account-scoped provider services and source controls. Calendars and contacts can be enabled independently for each Google or Microsoft mail account. 0128_account_provider_feature_settings.sql preserves already-active linked services during upgrade, but does not turn on a new service merely because an OAuth grant is broad. Disabled services are not scheduled or manually synchronized; an enabled service without a first collection remains eligible for discovery.

  • Calendar sources are grouped and presented independently from synchronization. Local/system, subscription/DAV, Google and Microsoft sources use stable source/account identities. 0129_calendar_presentation_preferences.sql persists per-user source collapse and calendar sidebar hiding; these presentation actions do not remove a calendar remotely or change its synchronization/write permissions. Google and Microsoft account sources share account-scoped “sync now” handling.

  • Provider error and status wording is more precise. Google API-disabled, scope, access, quota and unknown-forbidden responses remain distinguishable. Account cards render one account snapshot for enabled intent, authorization, sync freshness/error and push/polling rather than merging separate status fetches. A Google Contacts API-disabled result directs the owner to the People API configuration step and offers only a controlled status recheck, not repeated OAuth reconnects.

  • Feature enablement now reports preparation rather than a false sync success. An enabled service answers whether it is queued, requires grant verification, or requires authorization. Manual account Contacts sync is supported alongside calendars and uses the same completion reducer as OAuth finalization; a bounded/incomplete run stays incomplete and retryable.

  • OAuth capability checks now use scopes proven for the current token generation. 0127_oauth_grant_current_scopes.sql keeps current_scopes separate from historical consent. Existing grants deliberately remain unverified until a flow/token response confirms current scopes; a historic union is not treated as access for a new token.

  • A legacy Graph cache has a bounded repair path. Confirmed local legacy/native pairs are bound without deleting either cache row; ambiguous candidates become needs_review and a later ingest cannot replace an established binding. 0133_graph_legacy_message_binding_repair_state.sql persists a per-account/per-connection checkpoint and result counts; it runs as a local bounded slice after normal Graph mail sync, without calling Graph or changing its delta cursor. Apply 0133 after 0126 before deploying this worker. Graph body delivery also preserves body content if attachment metadata is unavailable.

  • Gmail reader MIME completeness is explicit. 0130_gmail_message_completeness.sql separates rule-body, reader-body and attachment-metadata completeness, so a rule hydration text cache does not falsely prove that reader HTML/files were loaded. The MIME reader supports embedded attachment bytes, attachment-backed text bodies and explicit attachment disposition.

  • Newsletter unsubscribe is recorded as an outcome, not inferred from a link. Gmail ingest persists unsubscribe evidence, and 0131_message_unsubscribe_attempts.sql stores pending, confirmed or uncertain one-click attempts. A manual URL or mailto: draft is not a completed unsubscribe, and an uncertain POST is not replayed automatically.

  • Native bulk mail actions preserve the native projection. Mixed transport trash batches keep Gmail/Graph local UUIDs and related metadata, and Gmail API archive stays on Gmail even when an IMAP-era archive mapping exists.

  • Graph default contacts use a real default target. The local default_contacts marker no longer reaches a /contactFolders/{id} URL; default results are retained independently from optional contact-folder discovery failures.

  • Reply and forward intent remains distinct for retries. Idempotency fingerprints now include the physical parent, RFC/account fallback and requested reply/reply-all/forward action. Forwarding carries the selected parent too, so Microsoft Graph can use its native createForward action after a move rather than creating an unrelated draft, even when the forward has no attachments.

  • Replies resolve their selected parent on the server. Every reply submission resolves its physical parent and RFC chain server-side. Microsoft Graph additionally resolves the direct or verified legacy native message identity and uses the provider reply action; a missing, cross-account or unusable Graph parent is refused rather than degraded into a new Re: message. Single reader, list, swipe and Conversation Reader share the same reply intent builder. Saved drafts retain reply/reply-all intent plus a same-account RFC parent fallback, so reopening after a move can re-resolve the current native parent. A sanitized diagnostic report records reply-resolution mode, chain length and post-ingest thread-match outcomes without message content, addresses or provider IDs. Operator tooling can run a bounded dry-run/write repair for replies missing a Conversation v2 projection: it requires exactly one same-account RFC parent, never uses subject matching, and protects manual locks/overrides while reporting repaired, ambiguous, missing-parent and protected counts. It is not exposed as an end-user route. Validation includes mocked SMTP raw-MIME parsing of a de-duplicated multi-hop References chain; it does not replace an OVH live-account acceptance run.

  • Contacts books are grouped by their source account. The manager separates local, CardDAV, Google and Microsoft sections by the connection/mailbox that owns their books, preventing same-named collections from different accounts appearing to share actions.

  • CardDAV is presented as a connection, not as a selected address book. Its source controls appear separately in Contacts manager, so selecting a Google or Microsoft book does not imply that it owns CardDAV credentials.

  • New contacts name their destination. The create form shows a writable address-book selector, including the owning mailbox for provider books. The selected target is captured for the save, so changing a surrounding list filter cannot redirect the write.

  • Provider contact books include their account context. The address-book read model now returns a provider collection’s connection, provider and mailbox identity. This makes identical book names from different accounts distinguishable; the book manager displays the mailbox and uses that account’s Contacts sync action.

  • Provider account controls use consistent switches. Calendar and Contacts on Google/Microsoft account cards now use the same accessible switch pattern as other Settings controls. Disabled services use neutral status styling rather than appearing healthy.

  • Disabled providers stop background and manual calls. Scheduler, push-hint refresh and Google/Microsoft manual contacts and calendar sync now consult the provider/API switches before dispatching an adapter, so disabling an integration also stops syncs for connections authorized earlier. Unit tests cover disabled provider/API policy before scheduler, push-hint, contacts or calendar adapter dispatch.

  • Calendar sources are grouped by category. The calendar rail now presents My calendars, External, Google, Microsoft and System headings before the individual source/account groups. This changes presentation only: source/account identities and their safe actions remain distinct.

  • External source syncing can be paused. ICS/webcal and CalDAV source rows now offer Pause/Resume. Pausing cancels future scheduled syncs without removing the source or its imported local calendar projection. The action is available in Settings and the calendar source manager.

  • Calendar preferences and connections are separate. Settings → Calendar now has distinct Appearance and Calendar subscriptions sections. The latter creates local Inboxora calendars without an account or URL, and manages ICS/webcal, CalDAV and holiday subscriptions. Removing an external source requires confirmation and states that its upstream provider calendar is preserved.

  • Provider calendar collection actions are safely constrained. Generic rename, color and delete now apply only to local calendars. Provider-backed calendars still support visibility and configured event write-back, but remote calendar lifecycle is deliberately not exposed until an upstream-first, journalled provider operation is implemented; no local projection is deleted as a substitute.

  • Threaded list cards keep a stable representative. When thread copies share a timestamp, message-row IDs now deterministically break both window and page-order ties. This prevents the visible copy, read state or folder context from changing merely because the database chose a different equal-date row.

  • Infinite scrolling respects navigation boundaries. An in-flight offset page now uses the same latest-request guard as a list reset. Switching accounts or folders before it returns discards the old response rather than appending it to the new view.

  • Diagnostics identify the loaded pair. A sanitized diagnostic report now records backend/frontend build SHA, the loaded hashed UI entry asset, current route and applied migration names. It excludes tokens, account identifiers and message content, so it can establish whether a reproduction used matching UI/API/schema revisions.

  • CalDAV connects from Calendar settings. The credentials form is in Settings → Calendar alongside calendar preferences; the source manager now adds ICS/webcal sources and manages sources/collections after they exist, rather than serving as a CalDAV login form.

  • Provider account cards stay compact. Google and Microsoft service controls, reconnect/retry and diagnostics are available after opening the specific account for editing rather than expanding every row in the Accounts list. Service enablement is staged until Save, so Cancel does not change it. Native account validation no longer asks for hidden IMAP fields.

  • Contact identity and sender learning are separate. 0134_contact_local_email_keys.sql removes the address-book-wide unique e-mail index: two provider contacts with the same address remain separate records, while Inboxora-owned recipient learning remains idempotent through a dedicated local e-mail key. Apply the migration before code that learns recipients or synchronizes contacts.

  • Faster, stable message rows. Photo decoration now asks whether a matching photographed contact exists instead of joining all matches, so duplicate contacts cannot duplicate or displace messages on a page. Threaded listings also avoid an unused physical-message count.

  • Google consent honours live administrator policy. A browser callback rechecks the provider/API switch before exchanging its code, so a provider disabled while consent is open cannot create a new grant.

  • Native Microsoft Graph mail, calendars and contacts. Reading, filing, flagging, searching, drafting and sending over Graph, with folders, delta sync, bodies and attachments (single, inline and ZIP), delete, move/archive, spam/ham, snooze, bulk delete, mark-all-read, source headers, drafts and provider-side search. An account that runs over Graph never opens an IMAP or SMTP connection, including the health checks, the IMAP loops and the automated rule forwarder.

  • An existing Microsoft account moves to Graph in place. POST /api/accounts/:id/migrate keeps the same account row — no duplicate, nothing local copied, lost or renamed — and there is no fallback to Microsoft IMAP/SMTP once it is native.

  • The Gmail API as an optional transport for Google mail, recommended but never forced: labels, history-cursor ingest, bodies and attachments on demand, message mutations, drafts and sending, with Google mail still fully supported over IMAP/SMTP with an app password.

  • Google Calendar and Google Contacts over the API, with read/write collections once write-back is enabled per collection.

  • Instant synchronisation, with polling as the safety net. Microsoft Graph change notifications, Gmail's watch/Pub/Sub push and Google Calendar push channels shorten the delay between a change at the provider and its appearance in Inboxora. They are an accelerator: every notification runs the existing delta/history/ sync-token sync, the schedule still refreshes every pulled collection, and an administration whose callback URL is unreachable keeps working exactly as before. Push needs a public HTTPS URL (derived from APP_URL) and, for Gmail, a Cloud Pub/Sub topic; the provider cards report the state per connection.

  • An existing Google mailbox can move to the Gmail API without being recreated. The account keeps its id and every piece of its local data, exactly one account remains, and the switch is atomic and repeatable. The recommendation in the account settings now performs that migration, including the Gmail authorization when the mailbox does not have it yet; the IMAP/SMTP app-password setup keeps working whether or not you migrate, and Inboxora never falls back to IMAP after a successful switch.

  • DAV write-back, from Inboxora or a DAV client. A calendar or address book imported from an external CalDAV/CardDAV server can be edited in Inboxora's own calendar or contacts page and from a DAV client, and the change is forwarded to that server — create, update, delete, recurring series and all three occurrence scopes. A provider collection (Graph or Google) is written over the web interface, and per-collection write-back is an explicit opt-in taken from the calendar sidebar or the address-book menu.

  • Recurring events can be changed for one occurrence, for this-and-following, or for the whole series — in a local calendar, a Google calendar, a Microsoft Graph calendar and a write-enabled CalDAV collection. "This and following" truncates the series at the split and, when you edited it, continues the rest as a new series that keeps the attendees. An invited series behaves the same way: cancelling or moving one occurrence notifies the attendees with the matching iTIP message (RECURRENCE-ID and an advanced sequence), and Google and Microsoft notify them themselves when the change is made there.

  • Send and attachment limits that follow the transport, so a large file on a Microsoft Graph account travels through a resumable upload instead of being refused by another transport's ceiling.

  • The menu-follows-your-finger mobile drawer gesture, with arbitration against scrolling, long-press and row actions.

  • A hardened CalDAV/CardDAV server: strong entity-tags, per-collection visibility and access modes, a per-password ceiling that can only narrow access, DAV:error bodies and correct sync-token handling.

Upgrade impact

  • Apply the complete post-4.0.4 migration chain before rolling out the application. The runner applies 0101_provider_layer.sql through 0140_gmail_legacy_charset_cache_refresh.sql in lexical filename order, including both 0118_carddav_source_identity.sql and 0118_immutable_message_ids.sql; they are additive and no existing table, column or row is rewritten. Several deserve naming: 0110 adds the columns the Microsoft device authorization uses and must be applied before a device flow is started; 0111 adds the nullable messages.provider_labels the Gmail adapter writes; 0112 adds the read_write value the per-collection write-back switch needs and changes no row, so nothing becomes writable because of it; 0116 creates the message_labels membership table (MAIL-02), which is written by the Gmail synchronisation and read by nothing yet — an application version that does not know it leaves it empty, and one that knows it writes only there. A mailbox that was synchronised before 0116 therefore has no membership recorded; the new membership report compares each message's own label set against its rows and names such accounts, so the gap is measurable before anything depends on the table. The flat message list now follows those memberships too: a message carrying multiple Gmail labels can appear in each projected label, and an action from that view carries the viewed membership as its folder context. Threaded expansion, counts and the remaining archive semantics are not yet migrated. 0117 lets a user hold several CalDAV or CardDAV sources: it drops the single-row constraint and replaces it with two partial unique indexes, so the unlabelled row per provider remains unique while labelled ones coexist. No row is rewritten, and nothing reads the new column yet, so behaviour is unchanged until the source model is used. 0118_carddav_source_identity.sql attaches CardDAV links to their exact source, 0119_gmail_archive_state.sql records Gmail's archive state without deleting the message, and 0120_provider_rule_headers.sql stores native-provider headers used by rules. 0121_provider_rule_deferred_queue.sql creates the leased read-only queue for missing provider rule inputs. 0122_carddav_source_ownership_and_leases.sql gives each external CardDAV projection a source owner and a fenced lease (ambiguous legacy ownership remains unowned rather than guessed); 0123_gmail_baseline_generations.sql persists a bounded Gmail baseline's seen set and its final All Mail reconciliation; 0124_message_header_completeness.sql records whether provider headers are complete; and 0125_provider_rule_deferred_dispatch.sql records the action hand-off state. Apply all five in that order before deploying their workers. 0126_graph_legacy_message_bindings.sql adds explicit legacy-to-Graph aliases; 0127_oauth_grant_current_scopes.sql adds a nullable, intentionally unbackfilled proof of current-token scopes; 0128_account_provider_feature_settings.sql adds the account/feature intent table and backfills only accounts with an enabled linked projection; 0129_calendar_presentation_preferences.sql adds per-user source-collapse and sidebar-hidden preferences; 0130_gmail_message_completeness.sql adds independent Gmail rule/reader/attachment completeness flags; and 0131_message_unsubscribe_attempts.sql records durable unsubscribe-attempt outcomes. Apply 0126–0131 in numeric order before serving their code. 0134_contact_local_email_keys.sql must run after the existing contact/address-book migrations and before application code that learns recipients or synchronizes contacts: it creates the Inboxora-local learning key, backfills only address books whose source is local, then replaces the address-book e-mail uniqueness constraint with a lookup index. The earlier migrations are additive; 0134 changes only the named index and does not merge or delete contacts. All must be applied before this application version runs.
  • Microsoft accounts are not migrated automatically. An existing Microsoft account keeps reading and sending over OAuth2 IMAP/SMTP until an administrator (or the account's owner) invokes the in-place cutover for it. Migrating is what makes the Graph paths reachable for that mailbox; no account is created, duplicated or deleted by the migration.
  • Google accounts are not migrated automatically either. IMAP/SMTP with an app password continues to work and is a supported long-term choice; the API is recommended in the accounts settings, and Ignore or do not show again dismisses the recommendation (the latter durably, per user and per mailbox).
  • Recurring events and per-occurrence edits work in every writable calendar, and a write-enabled CalDAV/CardDAV collection is editable from Inboxora's own pages as well as from a DAV client — no configuration change is needed for either.
  • Nothing is deleted by an upgrade. Imported data, mail, rules, aliases, signatures, preferences and DAV application passwords are untouched; the only deletion paths remain explicit and owner-scoped.
  • Provider configuration is optional. With no provider configured, mail, contacts, calendars and DAV behave as in 4.0.4. The layer can be disabled installation-wide with PROVIDER_INTEGRATIONS_ENABLED=0.
  • New optional configuration: MAIL_MAX_MESSAGE_BYTES (the fallback ceiling for a transport that declares none, i.e. SMTP) and MAIL_MAX_ATTACHMENT_BYTES (the hard installation ceiling on one attachment and on their total). Neither raises a provider's own limit, and leaving them unset does not cap Microsoft Graph.

Administrator actions

  • Preparing Microsoft message identities (optional, not automatic). Existing Graph rows use the default message id, which can change when a message moves. Before enabling immutable ids, run the translation in plan mode, review the mapping and unavailable/colliding rows, then apply it only when the plan is complete. The application records the successful translation on the connection and only then adds Prefer: IdType="ImmutableId" to Graph mail requests. This release does not expose an automatic command or enable the preference by default; a real mailbox must validate the translation before the switch is used.

  • Microsoft message identifiers can be migrated to their permanent form. Inboxora can ask Microsoft for each stored message's permanent (immutable) identifier and record it, which is the step that has to happen before any synchronisation may rely on those identifiers — relying on them first would duplicate every message in the mailbox. The migration can be planned without writing anything and then applied, in batches. Nothing uses the permanent identifiers by default, and the migration should be validated against a real mailbox before it is made the default.

The full procedure — fields, redirect URIs, scope names and console steps — is in Connecting Google and Microsoft accounts. In summary:

  • Entra application (Microsoft). Register one application and add the Graph delegated permissions the features you enable need: Mail.ReadWrite and Mail.Send for the mailbox, Calendars.ReadWrite for calendars, Contacts.ReadWrite for contacts (the read-only variants are requested when a read-only connection is chosen). Add User.Read, which identifies the account being authorized. Then:
    • browser method — a client secret plus the callback MS_REDIRECT_URI for mailbox sign-in and MS_PROVIDER_REDIRECT_URI for the Graph connector (derived from APP_URL when unset);
    • device-code method — the Client ID alone, with Allow public client flows enabled on the registration; no secret and no callback. The device flow is independently switchable per method, and the Graph connector supports it too.
    • Both methods can be configured together; each has its own readiness, and switching one off is enforced.
  • Google Cloud project (Google). Create a project, enable the Gmail, Google Calendar and People APIs you intend to use, configure the OAuth consent screen, and create a Web application OAuth client with the redirect URI GOOGLE_REDIRECT_URI. The scopes requested are gmail.modify for mail, calendar.calendarlist.readonly plus calendar.events (or calendar.events.readonly for a read-only connection) for calendars, and contacts (or contacts.readonly) for contacts. While the consent screen is in Testing, only listed test users can authorize; publish it or add your users before expecting a user to connect.
    • There is no Google device-code option and none is offered: Google's limited-input device flow does not carry the Gmail, Calendar or People scopes. A user authorizes through the browser.
  • Per-method readiness distinguishes "configured" from "working". The provider cards report which values are present per method; a mistyped secret reads as ready until an authorization fails at the provider, so verify with one real connection after configuring.
  • Turn the layer or a method off per installation, per provider or per method — including PROVIDER_INTEGRATIONS_ENABLED=0, which stops the authorization flows and the sync paths.

Upgrade from 4.0.4

No manual SQL is needed. The upgrade runs when the backend starts, exactly as any previous release's did.

One migration had to be corrected for existing installations. 0108 created a unique index on messages (account_id, provider_message_id) on the assumption that the column had always been the native provider identity. It had not: it came from Conversation Engine v2 as threading evidence, and on a Gmail IMAP mailbox it holds X-GM-MSGID — an identifier that is mailbox-wide, so the same message legitimately has the same value in every folder/label copy (INBOX, [Gmail]/Important, [Gmail]/All Mail, custom labels) because moving or copying a message preserves it. On a real mailbox (19 231 rows, 7 445 distinct values) the index could not be created and the backend stopped at that migration.

The corrected migration clears that column only for accounts whose transport is the legacy one (mail_transport NULL or imap_smtp) before it creates the index, and leaves it alone for accounts already on a native transport. Nothing else changes: no message row is deleted, and every id, uid, folder, message_id, thread_key, provider_thread_id (X-GM-THRID) and Conversation Engine value is preserved, so existing conversations, rules, snoozes and plugin links are untouched and Gmail threading keeps working.

Three states are handled without intervention: a 4.0.4 database (0108 never applied), a dev database that already applied the first revision of 0108 (its recorded checksum is accepted, so it keeps booting), and a database whose 0108 attempt stopped after adding the column (the corrected migration runs from there).

Two states are covered beyond the clean upgrade, because an installation may have run an earlier dev build:

  • a database whose 0108 attempt stopped after adding the column — the corrected migration runs from there;
  • a database that already applied the first revision of 0108 (its recorded checksum is accepted, so the corrected file is deliberately not re-run) and therefore still holds legacy provider ids while the unique index exists. Migration 0114 applies the same normalisation unconditionally, so a later IMAP copy or a new Gmail label cannot collide with the index; on a clean 4.0.4 upgrade it is a no-op.

Upgrade from 4.0.4 databases containing legacy Gmail IMAP folder copies is covered by an integration test.

Where provider configuration happens, and where accounts do

Integrations configure provider applications. Accounts connect individual mailboxes. This is the rule the settings are organised by:

  • Settings → Integrations (administrator) holds the Microsoft Entra and Google Cloud OAuth clients — client id, tenant, secret, redirect URI — the browser/device-code readiness, the scopes each authorization asks for, the push/webhook/Pub-Sub configuration, the configuration test and the aggregate diagnostics. It starts no authorization at all: no mailbox sign-in, no Graph connector, no device-code connect, no Google calendar/contacts connect, no per-user connection list and no per-connection push switch. Those actions belong to the mailbox they authorize and live on its card.
  • Settings → Accounts (user) is where a mailbox is added: Add account offers Microsoft, Google or another provider over IMAP/SMTP, next to the existing accounts and their migration, reconnect, aliases, folders, reindex and removal.

A Microsoft or Google mailbox added there signs in with the provider and is created natively (Microsoft Graph, or the Gmail API) with the address the provider reports — no host, port or password is typed, and no IMAP account is created first. Gmail over IMAP/SMTP with an app password stays a supported choice on the same screen, labelled as such. When the administrator has not configured a provider yet, the screen says so and links to Integrations. A mailbox that is already added over IMAP is not added twice: Inboxora reports it and offers the migration to the native transport.

Managing address books, and diagnosing a provider

Settings → Contacts → Manage address books opens a panel: the books on the left with their source, visibility and read/write state, and the selected book's settings on the right — general, synchronisation, write-back, DAV, import/export (Google CSV, Outlook CSV, vCard) and a danger zone. A book a provider owns is not a local book: it cannot be renamed, imported into or deleted from here, and the last local book is protected. On a phone the same panel opens as a sheet, with the list first and a Back action from the details. Provider authorization is deliberately absent from this panel: connecting Google or Microsoft contacts remains an account action (Settings → Accounts → the mailbox → Contacts).

A failed synchronisation now says why. Instead of a failure count, the first concrete reason is shown — a missing scope names the scope and the service to reconnect, an authorization the provider refused shows its code, a rate limit asks for patience, and a provider error shows its HTTP status, with the number of further failures when there were several. A synchronisation the grant cannot authorize is refused before the provider is called.

Each account has a Diagnostics section (collapsed by default) on its provider-services card: the connection and its status, and per feature whether it is authorized, which scopes are missing, when it last succeeded, its last error code, whether a cursor exists, and its push and schedule state. It contains no token, secret or provider payload.

Known limitations

  • Names already stored with replacement characters are not rewritten. The fix applies when a header is decoded, so newly received mail is correct. A message that was already parsed under the old decoder holds the replacement character in the database, and the original octets are not recoverable from it — re-fetching or re-parsing that message (a re-sync, or reopening it from the provider) is what repairs it. Nothing else is affected, and no manual database work is required.

Deliberate product behaviour, not missing work:

  • a provider collection is written over the web interface; over DAV it stays read-only, because the DAV server forwards a write only to an external CalDAV/CardDAV source;
  • an ICS subscription is read-only at its source and can never be written back;
  • push-assisted synchronisation needs a reachable HTTPS endpoint: without a public APP_URL (or with PROVIDER_PUSH_ENABLED off) Inboxora synchronises by polling alone, which is the supported default;
  • Google Contacts stays polling-only: the People API has no push channel for the contact resources Inboxora syncs, so its sync token and the schedule remain the mechanism;
  • Push hints respect disabled optional services, but are not proof of subscription cleanup. The scheduler gates calendar/contact push hints with the account feature setting (b028ebd0); a disabled service does not call its adapter from that hint. Existing upstream subscriptions, their expiry/cleanup and a live provider delivery path still require environment validation.
  • Account service intent now gates account-owned native writes where ownership is explicit. Google and Microsoft calendar writes plus Google People contact writes resolve integration_collections.account_id and refuse a missing or disabled feature setting before reaching the provider. It is still not a universal DAV/source ownership gate: externally owned CalDAV/CardDAV, local and ICS targets retain their source-specific policy, and already-running work cannot be retroactively undone. Validate DAV/source ownership behavior separately before treating a feature toggle as a universal authorization boundary.
  • Google personal contacts only, no shared directory, and no remote creation or sharing of collections;
  • a legacy external CalDAV/CardDAV collection gains its write-back link on the next sync of its source rather than through a one-shot migration;
  • invitations are Inboxora's on a CalDAV collection: a plain CalDAV server is not a scheduling service, so an event with attendees created in such a collection is mailed by Inboxora rather than by the source.

Manual acceptance not run

These need a real provider, device or client. They are NOT RUN, not failures:

  • live Microsoft — authorization (browser and device code), Graph mail, calendars, contacts, send and provider-side search against a real mailbox, including a legacy-message binding after a real cutover and contact discovery where the default folder has a non-empty parentFolderId;
  • live Google — OAuth, the Gmail API, Calendar and People, including API-disabled/access/scope 403 diagnosis, first calendar discovery after enabling the service, and push-hint behavior;
  • a real mailbox cutover from IMAP/SMTP to Graph or the Gmail API;
  • DAV clients — DAVx⁵, Thunderbird and macOS Contacts/Calendar, including write-back;
  • the browser suite and documentation screenshots for this revision on a runner, and the CI jobs on a GitHub runner (every command was run by hand against a real PostgreSQL);
  • a real touch device for the drawer gesture.

Verification

The following measurements are from the earlier frozen dev SHA 561262b4cb3b554fb8e9a2821224d49ee7206f36; they do not validate the later second-audit commits documented above. Their provider and UI paths still require the focused/local gates and the live acceptance listed here, with no claim of live validation:

  • Backend: typecheck clean, lint clean, 2983 unit tests passed, 225 skipped (247 files passed, 25 skipped).
  • Frontend: typecheck clean, lint clean, 2779 tests passed, 0 failed, production build clean.
  • Database: a database created empty for the purpose, the whole 116-migration chain applied from zero by the application's own runner, then 425 integration tests across 47 suites on PostgreSQL 16 — exit 0. (Running the unit suite and the integration suites against one database in a single process is not a supported combination: independent integration files then contend on the same conversation tables and a SERIALIZABLE rebuild can hit a serialization failure. The two figures above are the separate, supported invocations.)

Images published from that exact SHA (documentation-only commits follow it, so the published images are the current dev code). Workflow run 35524144582 built and pushed the :dev tags from 561262b4cb3b; both resolve to OCI image indexes carrying linux/amd64 and linux/arm64:

  • ghcr.io/dragonk/inboxora-backend:dev — sha256:f99fbb892b2adf600186474a12166aadfc8a504b6879ef5924466c09e97c9f46
  • ghcr.io/dragonk/inboxora-frontend:dev — sha256:88ea7c949c816f14d590c4ff8ad582992719ab8f06a58a49d4b5dd45a36809fc

Runtime smoke of that published pair — RUN, and passed. The pair was pulled and started as a stack (PostgreSQL, Redis, ntfy, backend, frontend) from a fresh volume: the backend applied the migration chain and became healthy, /api/health answered {"status":"ok"}, /api/version answered {"version":"dev","sha":"561262b4cb3b554fb8e9a2821224d49ee7206f36"} — the published image is the frozen revision — schema_migrations held all 117 rows, the first user was registered (admin), a fresh cookie jar logged in through POST /api/auth/login, /api/auth/me returned that user, /api/accounts returned [], and the UI root served the application. docker inspect reported 0 restarts for every container and no migration failed.

Not run for this revision, and therefore NOT RUN rather than passing: the manual acceptance list above, the browser suite and screenshots for this revision, and the CI jobs on a GitHub runner. The live-provider paths are exercised against faked providers at the HTTP boundary and a real PostgreSQL; no real Google or Microsoft application is registered in this environment.

Detailed changes

Changed

  • Microsoft calendars: the preview/stable choice for change tracking is explicit and off by default. Microsoft documents the per-calendar event delta as a preview capability; the stable alternative returns repeating events in a shape that loses the series. Inboxora keeps using the stable contract unless an operator sets GRAPH_CALENDAR_DELTA_VERSION=beta, which then reads each changed event in full (one extra request each). Writes stay on the stable contract in both cases. Neither path has been exercised against a real mailbox here.

  • Internal: a two-step calendar change now records its progress. Splitting a repeating event writes twice; if Inboxora stops between the writes, the operation's own record now says which part completed and holds the information the second part needs, instead of leaving an unexplained unknown outcome. A change that was interrupted is now finished from that record rather than abandoned — the first write is not repeated, and the second uses the snapshot the operation recorded. When the outcome of the second write was never recorded, Inboxora now looks for the second series before deciding: if exactly one event matching what it was about to create is already there, that is the result and nothing is created again; if none is, it creates it; if more than one matches, it reports that a person has to look rather than risk a duplicate. An interrupted split therefore completes exactly or is reported, never silently duplicated. The lookup has been tested against what the providers are documented to return, not against a live mailbox.

  • Internal: the transport seam now has a Gmail and Microsoft implementation. The actions the inbox rules perform — move, delete, read/starred — can now be carried out on a native account through the same services the app already uses for those writes. Nothing calls it from a native synchronisation yet, so behaviour is unchanged in this release; it is the remaining step before rules and the block list can run there.

  • Internal: the provider flag write is now a service, not route-private code. Setting read/starred on a Gmail or Microsoft message was implemented inside the mail route because it needed the IMAP manager imported from the application root. It now takes that side as a parameter and lives beside the provider adapters, so the inbox rules can use it. No behaviour changed.

  • Internal: the inbox rules and the block list now act through a transport seam. They were written against the IMAP manager, which is why they only run for IMAP accounts; extracting the actions they perform is the prerequisite for running them on Gmail and Microsoft accounts. No behaviour changed for IMAP, and nothing changed for native accounts yet — this release ships the seam, not the provider side.

Fixed

  • Resource deletion confirmation names the selected resource. Calendar and contact deletion dialogs now interpolate the actual resource name in the confirmation prompt in each supported language; deletion remains gated by exact-name entry and acknowledgement.

  • Microsoft Graph legacy folder targets are no longer silently skipped. Message sync accepts a legacy mail_folder collection when its local folder belongs to the resolved mailbox, while conflicting non-NULL ownership remains rejected and unresolved enabled collections return NO_ACCOUNT_FOR_CONNECTION.

  • Native account deletion cleans up local provider projections atomically. Exclusive Google/Microsoft provider connections, calendars and address books are retired together with the mailbox; shared connections and standalone DAV/local resources remain. Remote calendars and contacts are never deleted. Presentation queries and Calendar/Contacts managers suppress orphan native provider cards.

  • Gmail replies retain the provider conversation. Reply and Reply All sends pass the stored Gmail provider_thread_id, with a safe gmail: identity fallback, together with the RFC In-Reply-To and References headers. Gmail reply drafts include message.threadId; new messages do not receive a synthetic thread ID. Microsoft Graph remains on createReply/createReplyAll → PATCH → send.

  • Legacy native-provider mail rows are recoverable without guessed identities. Gmail body, headers and attachment reads resolve an exact provider message or refuse ambiguous matches; legacy Gmail labels and Microsoft folders recover ownership from their local folder while discovery backfills only NULL account links. CalDAV this and following writes create the remainder before truncating the master and compensate only definite refusals.

  • DAV Basic and Digest authentication share one guarded client path. CardDAV and CalDAV discovery, reads, privilege detection, ETag-protected PUT/DELETE and write-back replay Digest challenges, including Baikal-style MD5/qop=auth, while preserving public-HTTP, private-host and redirect validation. Private plaintext HTTP does not send Basic credentials before a challenge.

  • Conversation Engine contention and duplicate storage are reduced. Live ingest, retry and rebuild serialize per user/account before their serializable transaction, while 0139_conversation_raw_header_dedup.sql clears redundant logical_messages.raw_headers values without removing physical messages.conversation_raw_headers. Run the documented pre/post DB-CHECKS.sql; schedule any VACUUM FULL or pg_repack separately.

  • Legacy Gmail API charset handling preserves Polish text. Valid UTF-8 and declared legacy encodings remain authoritative; malformed UTF-8/ASCII legacy parts use a bounded Central-European fallback. Migration 0140_gmail_legacy_charset_cache_refresh.sql marks cached Gmail reader bodies incomplete for one-time on-demand refresh without deleting messages.

  • CardDAV sources are isolated during synchronization and write-back. Each source now has its own durable integration identity, credentials, pruning scope, timer and disconnect operation; the Contacts panel selects the source for sync and disconnect. Apply migration 0118_carddav_source_identity.sql before rolling out the application change; ambiguous legacy links fail closed and live DAV validation remains required.

  • Gmail baseline resumes within a page instead of restarting it. A durable set of processed thread IDs lets a bounded run advance through pages larger than its per-run budget.

  • Native inbox rules receive normalized provider metadata and fail closed on unknown content. Missing lazy bodies, headers or sender metadata no longer satisfy negative conditions that could move or delete mail; retry/live-provider hydration remains required for fields not stored locally.

  • Gmail archive preserves the local message object. Removing INBOX records an explicit archived state and updates label membership instead of deleting the message, preserving IDs, annotations and thread history. Apply migration 0119_gmail_archive_state.sql before rollout.

  • Microsoft Graph calendar delta uses only the documented beta item-delta contract. Reduced events are read back in full; GRAPH_CALENDAR_DELTA_VERSION=v1.0 is rejected before it can send an unsupported request. Live-tenant validation remains required.

  • Graph calendar expansion preserves read failures. A 401/403, 429, timeout or 5xx is no longer converted to a deletion tombstone, so the cursor cannot advance as if the event had been removed. A live Microsoft tenant test is still required.

  • Graph preferences are combined and Google recurrence clearing remains explicit. Paging/time-zone preferences are sent together with immutable-id mode, and an explicit recurrence: null no longer recreates the prior recurring series.

  • Calendar occurrence retries consult the mutation journal before live occurrence lookup. A retry after a master split can use the stored occurrence identity instead of incorrectly returning OCCURRENCE_NOT_FOUND.

  • Calendar split recovery no longer creates on an empty bounded search. An accepted create with a lost response remains outcome_unknown; Graph remainder creates also carry a stable journal operation transaction ID.

  • Inboxora now asks a CalDAV or CardDAV collection what may be written to it. It used to assume every collection accepted writes, so an edit failed at the server each time. The collection's own permission list is read when it is synchronised: a collection that grants only reading is shown and treated as read-only, and one that will not answer keeps the previous behaviour, with a refused write still recorded as a refusal. The interpretation has been tested against the documents servers are documented to send, but not yet against a live DAV server.

  • Correction to an earlier note in this release: a report that a blocked message disappeared during a Gmail account's first full synchronisation was traced to the test's own fake, which kept listing the message under INBOX after the move — so the synchronisation correctly treated the row it had just re-filed as one the provider no longer holds. With a fake that reflects the move, the blocked message is moved to trash, survives the synchronisation and is filed there. Related and already fixed: a provider message's internal identifier was being rounded, which made an ingest action fail without saying so.

  • Blocked senders work on Gmail and Microsoft accounts; your rules do too, once an operator turns them on. Rules can be global and can delete mail, so they are not switched on for provider accounts automatically — an upgrade would otherwise start applying rules a mailbox never ran, including deletions. Set PROVIDER_NATIVE_RULES=1 to enable them; until then the synchronisation reports that it skipped them.

  • Your rules and blocked senders now work on Gmail and Microsoft accounts too. They previously applied only to IMAP accounts: a blocked address kept arriving and no rule ran. Blocking an address now moves its new mail to that account's trash (or deletes it, when the account has no trash folder), and rules can move, archive, label, mark read or star, delete, and forward — carried out on the provider. These paths are covered by tests but have not yet been run against a live mailbox, so the first real-account synchronisation is worth watching.

  • Contacts in every Microsoft contact folder are imported. Previously only the default folder was read, so anything kept in another folder (or in a folder inside one) stayed invisible. Each of those folders now becomes its own address book, which you can enable, disable and publish to devices separately, and a problem with one folder no longer stops the others.

  • Changes to a CardDAV contact are sent back with the version Inboxora read. Each imported card now records where it lives on the server and the version it had at that moment, so an edit is sent as a change to that resource rather than being looked up by scanning the address book, and the server can reject the write if someone else changed it first. Cards that disappear from the source have their records retired with them.

  • Microsoft contacts now synchronise from the folder they actually live in. Inboxora asked Microsoft for a contact folder named "contacts", which is not an identifier the service accepts, so the mailbox's contacts could not be read. The folder is looked up first and its real identifier used, both for reading and for writing changes back. Already-connected mailboxes keep their address book, their synchronisation position and your write-back setting. Contacts that live in extra folders beyond the default one are not pulled yet.

  • Changing "this and following" on a repeating event no longer changes how many times it repeats — including when the editor sends the rule. The count that came with the edit belonged to the whole series, so the second half used to start the count again. It now continues with only the occurrences that are left, and if that cannot be worked out the change is refused instead of producing a series that disagrees with itself.

  • An account whose first synchronisation failed now recovers on its own. Inboxora only scheduled connections that already had collections, so a connection whose first run failed — or one interrupted by a restart — was never retried: the mailbox appeared connected and stayed empty. Connections that hold nothing are now picked up and their discovery is retried, using the same discovery their first run used. A collection you disabled, or one with no local link, is still left alone, and connecting calendars or address books remains an action you take.

  • The Microsoft calendar change-tracking request now asks only for what Microsoft's contract allows. It previously combined the delta call with projection and paging parameters that delta does not support, so the request could not be answered as written. The remaining question — the per-calendar delta form this synchronisation relies on is documented as a preview capability while the stable version returns repeating events in a shape that loses the series — needs validation against a real Microsoft mailbox before it is changed, so it is deliberately not switched yet.

  • A CardDAV synchronisation no longer changes your Google or Microsoft contacts. With duplicate merging on, a matching email caused the imported card to be written over the provider-synced contact — a change Inboxora could not send back to that provider, so the next synchronisation undid it and the edit was lost. Merging now applies only to your own local books and to other books of the same CardDAV source; when the duplicate belongs to Google or Microsoft, both contacts are kept.

  • Connecting a CardDAV source shows its address books immediately. The books it pulls used to appear only after a manual page reload, so a freshly connected source looked like it had imported nothing.

  • A failed CardDAV synchronisation no longer leaves contacts missing. The pull deletes the rows the server no longer lists, then writes what it found; those steps are now one transaction, so an interrupted run leaves the address book exactly as it was instead of missing entries until the next successful synchronisation.

  • A CardDAV address book shows its real last sync and can be synchronised from its own panel. The books manager only knew Google and Microsoft, so a CardDAV book always read "never synchronised" and had no sync button. It now reports the DAV source's last sync (or failure) and offers the action, next to the book it applies to.

  • Replies sent from a Microsoft mailbox now thread correctly. They used to be sent as new messages with reply headers that Graph does not accept, so Outlook and Inboxora saw no relationship to the message being answered. Inboxora now asks Microsoft to create the reply (or reply-all/forward) itself and fills in the content, which is what gives the message its conversation. A reply to a message stored in another mailbox is sent as a separate message, deliberately, rather than pretending to be a reply to something it is not.

  • An address book you switched off is no longer synchronised by hand either. It was already excluded from the automatic schedule, but a manual "sync contacts" still pulled it. Both providers now skip a disabled book and leave it and its contents alone.

  • A repeating-event change now refuses before it changes anything. Changing "this and following" is two provider writes; the original was shortened before the request was validated, so a request that could never succeed could still end the earlier part of the series. Validation and payload building now happen first. The two writes are not yet resumable across a crash, which remains a known limitation.

  • The card no longer says instant sync is on when the mailbox only polls. The push state collapsed a subscription that exists but is failing, renewing or removed into "missing", and the schedule was labelled push-and-polling for every provider-API mailbox. The state now distinguishes those cases and shows when a renewal is due, and the schedule label says "scheduled and push" only when a subscription is really active.

  • Calendar links carry the provider's version, not a local fingerprint. The stored "remote version" of a synced event was a hash of the local copy, which changes for local reasons; a CalDAV write-back could then send a precondition the provider never issued. It is now the provider's own version (Google etag, Microsoft changeKey), and empty when the provider gives none.

  • Editing a moved occurrence of a repeating event works again. Inboxora looked for it in a one-day window around the original date, so an instance moved further than that was reported as missing; it now widens the search only when the first attempt finds nothing. The comparison also no longer confuses two timed occurrences on the same day, and Microsoft timestamps without a time zone are read as UTC rather than in the server's zone.

  • Changing "this and following" on a repeating event no longer changes how many times it repeats. Splitting a series now continues with the remaining occurrences instead of restarting the original count, the end value of an all-day series is a date (as the calendar standard requires) rather than a date-time naming another day, and a Microsoft series ends on the correct day in its own time zone instead of the previous day in UTC. A split that cannot be represented is refused before anything is changed.

  • A folder you deleted at Microsoft no longer blocks the mailbox. Discovery kept treating a vanished folder as a target, kept asking for it, and the 404 it got ended the synchronisation of every other folder in that mailbox. A complete folder listing now retires the folders it no longer contains, and a folder that cannot be synchronised no longer stops the rest — only a lost lease or an unusable connection does.

  • A synchronisation that was taken over can no longer write over the newer one. When a run lost its lease while waiting on the network and another worker took over, it could still store its page; only the cursor was protected. Every page is now written inside a transaction that re-checks ownership and locks the row first, so the superseded run stops instead of overwriting. The provider request itself is never made while holding a lock.

  • An unconfirmed send can no longer turn into a silent duplicate. Inboxora could not tell two replies with the same text to different messages apart when checking an idempotency key, so the second could be treated as a repeat of the first; and after a send whose answer was lost, the composer forgot its key, so the next ordinary click started a fresh send. The answered message is now part of the identity check, and after an unconfirmed send the key is kept — clicking Send again shows the same "result unknown" state instead of sending a second copy. Sending another copy anyway is a separate action that asks first and says why.

  • A throttled mailbox no longer holds up the rest. The scheduler used one installation-wide backoff, so a single rate-limited collection delayed every other account and provider, and even a second worker refreshing the same collection triggered it. Backoff is now per collection and follows the provider's own Retry-After, and "another worker is already doing this" is reported as exactly that instead of as throttling.

  • Google contacts deleted while a sync token had expired are gone for good. Google reports an out-of-date token in a structured field that Inboxora did not read, so the rebuild it asks for could be missed; and the rebuild only added what it found, so a contact deleted in the meantime stayed in the address book. The signal is now honoured whatever status carries it, and a completed rebuild removes the contacts it no longer lists — only in that address book, and only after a complete scan.

  • Moving a mail between folders keeps it. Microsoft reports a folder delta removal both when a message is deleted and when it merely moves to another folder; Inboxora deleted the message from the whole account, so a message that had just been moved could vanish locally. The removal is now applied only to the folder it came from, so a move ends with the message in its new folder whichever side is processed first.

  • Microsoft contacts synchronise again, and keep your anniversaries. The contact request asked Graph for an anniversary property that the v1.0 API does not have (and the beta API names differently), which can fail the whole request. It is no longer requested, and a provider sync no longer clears an anniversary you or another source stored. Message priority chosen in the composer is also carried over to Microsoft mail now, instead of silently arriving as normal.

  • A calendar you switched off is really off. Both calendar syncs ignored the per-collection enabled switch when choosing what to pull, so a disabled calendar kept being synchronised, and a refresh could turn a collection you disabled back on. Discovery now updates only the provider's own facts, the synchroniser reads only enabled collections, and a share whose write permission has been revoked is shown as read-only again.

  • A synchronisation that was cut short no longer looks finished, and never deletes what it did not read. Provider listings are capped at a number of pages per run. When a run hit that cap, some adapters reconciled deletions against the pages they had seen — deleting messages, contacts and events that were merely further down the list — and the contact syncs reported success for a book they had read only halfway. A capped run is now reported as incomplete, leaves the stored cursor alone and deletes nothing; the next run continues from that cursor. A Gmail baseline that was interrupted mid-page also re-reads that page rather than skipping to the next one, and a Gmail history feed that was too long to read to its end rebuilds from a baseline instead of advancing past the unread changes.

  • A duplicate name no longer loses a whole synchronisation. When a second provider calendar, address book or mailbox folder had a name a local one already used, the code retried with a suffix — but the retry ran inside a transaction PostgreSQL had already aborted, so it failed and the discovery was lost. Each attempt now runs in its own savepoint, so the retry works and both collections are created and linked.

  • A partly failed synchronisation no longer looks successful. A calendar run that could read some calendars but not others reported the failure in its result rather than by throwing, and the post-authorization step looked only for a thrown error — so the account card said the connection was synchronised when a calendar had not been pulled at all. A reported collection failure now makes the result a partial failure with the provider's code, and a failure that arrives after an earlier good run is shown instead of the older green state.

  • An interrupted synchronisation no longer looks finished, and a stale sync cursor is really dropped. Storing progress and declaring success were the same database write, so a first synchronisation cut short after one page reported the mailbox as up to date; and because the cursor was written with a "keep the old value if the new one is null" rule, the recovery path that means to discard a cursor the provider has invalidated kept using it. Progress checkpoints and run completion are now separate operations with explicit semantics, and only a run that applied its whole declared scope is recorded as successful.

  • The account card tells the truth about calendars and contacts. Calendar and address-book synchronisation state is stored per collection with no account id, and the calendar pipeline is recorded as calendars; the diagnostics looked for it by account id and under the name calendar, so it was invisible and the card said "last synchronisation: never" for a connection that had pulled data. The same screen counted every collection of the connection as a calendar (folders included) and compared the address-book kind to a value the schema does not use, so it always showed zero books. Both reads now follow how the data is actually stored, and the pipeline name shown follows the provider (Gmail history, Graph messages).

  • Microsoft mail synchronisation reads the folder tree again. Folder discovery asked the pinned v1.0 Graph endpoint for wellKnownName, a property that only the beta resource has. Depending on the service that either fails the request outright or returns folders with no role at all, in which case Inbox, Sent, Trash, Spam and Drafts were not recognised and no provider message could be placed in the local folders the interface and the rules read. Discovery now asks v1.0 only for v1.0 fields and resolves each well-known folder through its documented v1.0 alias (GET /me/mailFolders/inbox), so a renamed or non-English folder keeps its role.

  • Reconnecting a mailbox now reaches the end of the flow. The account card's connect button asks for one consent that covers mail, calendar and contacts together, but the OAuth start routes accepted a narrower set of purposes and quietly downgraded the request to a "new account" authorization. That authorization stores the token and stops: no first synchronisation runs, and the result does not name the mailbox, so the card that started the flow cannot match it and keeps waiting. Both providers (browser and device flow) now share one purpose list, a purpose that is not recognised is refused with 400 rather than turned into a different flow, and migration 0115_oauth_account_enable_purpose widens the database constraint that rejected the value. Apply the migration before rolling out the new backend.

  • A reconnect cannot attach the wrong provider account. Choosing a different account in the provider's consent window no longer re-points the mailbox at that account's token: the callback compares the identity the provider returned (issuer, subject and, for Microsoft, the tenant) with the identity the mailbox is already bound to, and refuses a mismatch with a message that says so. Same-identity re-authorizations, including a renamed or aliased address, continue to work.

  • A repeated OAuth callback is honest about its state. When the one-time state has already been consumed the callback no longer treats "still exchanging the code" as success; a finished flow reports its terminal result, an in-progress one reports that it is still in progress.

  • Polish and other non-ASCII sender names from legacy charsets are shown correctly. A message whose client encoded the From/To name or the subject in ISO-8859-2 or Windows-1250 — Outlook's charset for Polish — was decoded as UTF-8, which turned Kamil Maciąg into Kamil Maci?g; only UTF-8 mail was right, so the problem appeared to come and go. The charset declared in the encoded word is now used, an unknown label degrades to a byte-for-byte single-byte mapping rather than to a second UTF-8 decode, and the address, subject and list-unsubscribe paths that share the decoder all benefit.

The area-by-area list — every feature, change, fix and security note — is in docs/CHANGELOG.md under [4.1.0]. The per-package delivery status, the frozen code SHA and the manual acceptance that remains are recorded in docs/IMPLEMENTATION-STATUS.md.

Clone this wiki locally