Repository navigation
iglo.email 2.3.0 is a minor release. External sources become an instance switch, with the connector chosen per project, and iglo.base joins PocketBase as a connector. An instance whose projects already use a source is switched on automatically at the first start, so read the upgrade notes before you upgrade. It adds one project and one instance database migration.
Upgrade notes
- External sources are now an instance switch (D187, D188). The new instance setting
sources.enabled(instance settings page, "External sources";/api/instance/settings, instance host only: a project write naming it is a 400) turns the whole feature on or off. It is off on a new instance. On upgrade, an instance whose projects already use a source is switched on automatically at the first start: if any project has a non-emptysource.url,sources.enabledbecomestrue, so a running source keeps working with nothing to set. An instance where no project uses a source stays off; turn it on before configuring a source. - Each project names its connector in the new project setting
source.connector(pocketbase,iglo.base, or empty for none; Settings, Source, "Connector") (D188, D190). The upgrade setspocketbaseon every project whosesource.urlis non-empty; a project without a source gets none. Source settings, stream state, retry rows and external sequences are otherwise unchanged. - Configuring a source on a project with no connector now needs
source.connector. APUT /api/settingsthat leaves a non-emptysource.urlwith no connector sent or stored is a 400 naming the connectors (D188). Existing sources getpocketbasefrom migration 40, and a full write that omits the key keeps it, so existing clients keep working. - Migrations: project migration 40 (
source.connectorfor projects with a source URL) and instance migration 5 (marks an instance that already serves projects, so the first start can turnsources.enabledon and then remove the mark). Both run automatically at start.
New features
- iglo.base connector (D190). iglo.base, an API-compatible port of PocketBase, can be chosen as a project's connector (
source.connector:iglo.base). It uses the same settings, collections and service account as the PocketBase connector. Where iglo.base answers differently from PocketBase: a401for a revoked token makes the connector sign in again and repeat the read once; a realtime connection that iglo.base closes because the reader fell behind is reconnected and caught up from the stream's markers, with nothing lost or doubled; a stalled server is a transient error. Tested against iglo.base 1.3.0.
Changed behaviour and API changes
- While
sources.enabledis off (D188): no source stream, catch-up or retry loop runs. A project'sGET /api/settingsleaves out everysource.*key, and a write naming one is a 400 that says sources are off; a full write that omits them keeps the stored values.POST /api/settings/source/testandGET /api/settings/source/retriesanswer404 unknown endpointbefore authentication, and their MCP tools are neither listed nor callable. The admin hides the Source tab and the source retry queue. Creating, saving or activating an external sequence is a 400 namingsources.enabled, and the sequence and enrollment routes that read a source answer 409 "External sources are off on this instance.". - Held, never lost (D188): turning sources off keeps stored source settings, stream markers and retry rows, and holds external sequences' enrollments (not advanced, not ended). A project that still stores a connector and a URL treats its source-linked subscribers as unreadable: a campaign skips them as
subscriber_unavailable(not retried, one attention line per run) and a sequence step to one waits; subscribers not linked to the source are sent as before. Such a project logs one "Source held: external sources are off on this instance" line at start. When sources are turned on again, the streams resume from their markers and every active enrollment's outage window is cleared, so the time held does not count toward the 72-hour limit. - Test connection (
POST /api/settings/source/test) runs through the project's connector and is a 400 without a connector or a URL (D188). Validation messages name the connector ("PocketBase" or "iglo.base").
Known limitations
- The iglo.base connector keeps PocketBase's extra check of an empty answer (a token check after a short or empty read), one more request per confirmed absent answer, so a connector pointed at the wrong backend cannot remove a live subscriber (D190).
- The connector is chosen, not detected: nothing checks that a source URL really serves the chosen backend (D190).
The release assets (binaries, image, platforms) are unchanged in form from 2.2.2.