Commit Graph
299 Commits
Author SHA1 Message Date
Matthew Meszaros 181c30e849 feat: switch off a custom-server mailbox whose IMAP connection has failed before the server answered for 72 hours with no successful sync or send, measured from a new trigger-stamped email_accounts.activated_at, and say why in the drawer, the Off pill, the disconnected webhook and the mailbox docs 2026-11-11 15:55:59 +01:00
Matthew Meszaros 66cc6d94a1 feat: take a warmup partner whose address hard-bounces as unknown out of the sending workspace's draw and reply path at once and out of the whole pool after bounces from two workspaces, stamped on warmup_tokens.bounced_at from the consumer's inbound bounce handler and lifted when warmup mail arrives again, with the advisor, partner counts and warmup docs reading the same rule 2026-11-11 15:29:52 +01:00
Matthew Meszaros ebf918aa74 Merge remote-tracking branch 'origin/main' into fix/hide-warmup-inbox 2026-11-09 20:46:53 +01:00
Matthew Meszaros 05231aeb59 feat: forget an external warmup rule's last sweep when it is turned off so re-enabling it removes mail stored meanwhile, and return the warmup filter tag read's database error so the send retries instead of leaving out an opted-in tag 2026-11-09 20:44:11 +01:00
Matthew Meszaros a6e09c46ec Merge remote-tracking branch 'origin/main' into fix/hide-warmup-inbox 2026-11-09 20:19:20 +01:00
Matthew Meszaros e3b5253cbe feat: hide other services' warmup from the inbox with a Settings > Sending switch for unverified Warmbly warmup markers plus warmup tags (applied on arrival and swept from stored mail), add an opt-in per-mailbox warmup filter tag appended to warmup a mailbox receives (migration 000373, GET/PUT/DELETE /emails/:id/warmup-filter-tag, drawer row), and show provider send throttles as a calm Warmup tab note instead of a red failure 2026-11-09 20:19:19 +01:00
Matthew Meszaros a2e1bf58f0 feat: merge main into the Partnership branch, keeping both the OAuth app import checks and the integration reconnect marking in the org transfer repository 2026-11-09 18:11:57 +01:00
Matthew Meszaros fe21388a90 feat: settle interrupted manual sends by releasing unstarted unibox reservations left failed or dead-lettered after an unknown hand-off, notifying the owner when recovery proves a manual send never left, and sweeping manual sends claimed but never reserved back to pending (or failed past an hour) from a backend loop, with live PostgreSQL regressions wired into CI and the unibox guide updated 2026-11-09 17:14:30 +01:00
Matthew Meszaros 3e5d7b6e47 feat: address review of the Partnership changes by allowing provider redirects in the sign-in link page CSP, refusing limit=0 on connect links, keeping saved OAuth apps maintainable after a workspace leaves Partnership, enforcing the key mailbox allowlist on grant renewal, dropping stale worker token updates for workspace-app mailboxes, keeping Partnership placement tests off the balance, refusing OAuth hand-backs and mixed credentials on Cloud, keeping ambiguous hand-overs retryable, excluding instance-run mailboxes from action admission, restoring the frozen reporter-trust placement filter, showing pending removal first and refusing workspace imports whose OAuth app collides 2026-11-09 17:05:07 +01:00
Matthew Meszaros 8575bce7ca feat: make the Partnership plan Cloud-only by removing instance self-execution, and add the Partnership mailbox connect API (SMTP/IMAP with warmup, one-sign-in OAuth grant handoff, sign-in links), workspace-owned Google and Microsoft OAuth apps refreshed on the backend, Partnership access to placement tests and API keys, and the Partnership guide 2026-11-09 15:58:47 +01:00
Matthew Meszaros 90e4d48228 feat: work out each contact's timezone and country from its imported location fields, phone and email domain, add world region, country and timezone segment fields with Split by region, let a campaign read its sending windows in each lead's local time with a lead timezone breakdown on the Schedule tab, and auto-map location columns on import 2026-11-08 12:06:03 +01:00
Matthew Meszaros 3cb29c7909 Merge remote-tracking branch 'origin/main' into fix/1157-log-silent-sync-drops 2026-11-07 11:58:32 +01:00
Matthew Meszaros 747b788e10 feat: classify provider sending refusals into typed mailbox pauses (rate_limited, daily_limit, sender_blocked, domain_auth) with escalating cooldowns that charge the lead no attempt, re-probe and owner Resume sending for SMTP holds, short pauses keeping bound leads waiting, auto-resume of paused_no_accounts campaigns, and a mailbox drawer pause notice with list badge (migration 000366) 2026-11-07 11:01:55 +01:00
Matthew Meszaros e7ae368921 feat: release a Gmail or Outlook mailbox's permanent send hold automatically once a complete sync outlives the refusal (at most every 6 hours, migration 000357), let a reconnect clear permanent holds, and tell owners how sending resumes 2026-11-07 05:41:08 +01:00
Matthew Meszaros 04ee0c2269 feat: let the pending warmup verification loop wait quietly on sends whose provider Message-ID is not recorded yet and file a held arrival at once when its send ended failed or cancelled, treat a library segment that already has a scheduled generation batch in flight as topped up instead of failing the run, name the shared library and the underlying cause when a scheduled batch submission does fail, and stop the generation job filing each failure twice 2026-11-06 19:01:45 +01:00
Matthew Meszaros 19fbb96fc9 Merge pull request #1162 from warmbly/fix/consumer-mailbox-queues
feat: per-mailbox consumer queues sized from the database pool
2026-11-05 17:21:06 +00:00
Matthew Meszaros ec50b82c91 feat: publish the warmup recipient's WARMUP_ACTIVITY as soon as its receipt is stored, before and regardless of the sender's placement claim 2026-11-05 17:51:21 +01:00
Matthew Meszaros 95e5967310 feat: hold the warmup reply share between half and one and a half times its target instead of repaying whole deficits in bursts, answer the deepest warmup conversation first, exempt warmup replies from the recipient's inbound cap and its count, publish WARMUP_ACTIVITY so the mailbox drawer refreshes live, and show the seven-day reply share against the target 2026-11-05 16:27:27 +01:00
Matthew Meszaros f5d974bfd2 feat: run consumer worker events on per-mailbox queues that share a lane limit so a slow mailbox holds only its own lane, and size that limit from the consumer's database pool unless CONSUMER_EVENT_CONCURRENCY is set 2026-11-05 13:30:39 +01:00
Matthew Meszaros 7949e5137b Merge pull request #1161 from warmbly/fix/consumer-keyed-lanes
feat: consumer per-mailbox event lanes and warmup receipt locks on direct sessions behind a pooler
2026-11-05 09:06:10 +00:00
Matthew Meszaros 67d61f24ba feat: handle worker events on ordered per-mailbox consumer lanes (CONSUMER_EVENT_CONCURRENCY, default 8) and hold warmup receipt locks on direct sessions behind a transaction pooler so a held lock never occupies a pooled server connection that receipt acceptance needs 2026-11-05 09:50:32 +01:00
Jaseem ThayalandClaude Opus 5.5 f04d2a1bad fix: log silent IMAP publish failures and dropped sync state reports (#1157)
Two paths left last_synced_at stale with nothing in the logs, which is
what shows as "No recent successful sync check":

- The IMAP pass ended with nil when a MAILBOX_UPDATE, MAILBOX_DELETE or
  MAILBOX_RENAME publish failed. Those five sites now go through
  controlPlaneError, the helper the rest of the pass already uses for
  publish failures: it logs a warning with email_id and the error and
  emits ControlPlaneHeld evidence. It still returns nil and holds cursors.
- HandleSyncState returned nil without a word when PutFromWorker rejected
  a report because the worker or transport generation no longer matched.
  It now logs a warning with email_id, worker_id, report_generation and
  transport_generation, and still returns nil.

Logging only, no behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 14:08:17 +05:30
Matthew Meszaros 97aff1e855 feat: count a mailbox's warmup sends on its own local day in the warmup scheduler and show the queued warmup send on the mailbox's clock with its zone named in the mailbox list and Warmup tab 2026-11-05 08:58:45 +01:00
Matthew Meszaros 377e42a58c feat: keep free warmup only for workspaces that exist today through subscriptions.keeps_free_warmup (migration 000352), give new unpaid workspaces a zero mailbox allowance with warmup off, send inbox review notices only to workspaces whose plan opens the inbox, and update the locked screen, allowance dialog, billing, site pricing and docs to drop the hosted free plan and recommend Warmbly Cloud over self-hosting for deliverability 2026-11-04 20:27:44 +01:00
Matthew Meszaros 6642f339ea feat: merge main after the Postgres load work landed, number the mailbox push channels migration 000351 after it, and share one arrival batch size between the claim and the delivery loop 2026-11-04 18:03:46 +01:00
Matthew Meszaros 6b83ad3306 feat: tie each task dispatch claim to its lease so a lapsed replica cannot release a newer claim, wake webhook delivery from any process through a throttled Postgres NOTIFY on enqueue, keep delivered send-result effects whose task can still re-apply, floor warmup thread-turn pruning at the mail and recovery windows, retry transient unibox backfill failures, hand back run requests for stopped loops, report failed prunes and pool moves, and scope db load to the whole server without non-query text 2026-11-04 16:41:20 +01:00
Matthew Meszaros a7721887a8 feat: wake a Gmail mailbox once its push channel is stored, resend a PUSH_STATE the bus refused and report a Graph subscription that was deleted or gone even when its replacement fails, follow Graph subscription list continuations, drain a wake the timed pass covers, bound SYNC_WAKE publishes by the caller's deadline, keep the Google service account out of the compose worker, and correct the mailbox push docs on the Gmail publisher principal, what GMAIL_PUSH_TOPIC alone does, poll intervals and who calls the push routes 2026-11-04 16:32:27 +01:00
Matthew Meszaros 8984e1ffde feat: keep campaign feeds, notifications and webhook delivery logs unless an operator sets a window, stop pruning tracking dedupe marks, cap warmup mail retirement at one 50-message share per mailbox per run, keep the sync recovery clock exact, and prune warmup thread turns in batches that respect each mailbox's own retention 2026-11-04 14:09:37 +01:00
Matthew Meszaros 6a784031ab feat: cut consumer Postgres statements per arrival and SYNC_STATE by reading the prior sync state under the report lock, folding the last_synced_at touch into the upsert, throttling healthy recovery and account clocks to a minute, admitting arrivals in one statement, claiming 32 arrivals per statement with checkpoints only before a remaining stage, counting the arrival backlog every 30s, memoizing the mailbox row per NEW_EMAIL and caching resource organizations for realtime audiences 2026-11-04 13:06:19 +01:00
Matthew Meszaros 3a7048a7c1 feat: retire warmup mail in batches of 500 capped at 50 per mailbox and keep taking batches for up to 40 seconds a run, so the retention sweep keeps pace with large fleets instead of 100 copies a minute 2026-11-04 13:00:34 +01:00
Matthew Meszaros 686a916d42 feat: run the warmup, campaign, segment and tracking-domain reconcilers as claimed jobrun jobs, keep the worker reconciler, unibox body backfill and signing-secret migration on one backend behind a sticky Postgres session advisory lock (internal/leader), read warmup pool membership in one query with per-organization entitlement and risk lookups every 10 minutes, and take every jobrun run-now request for a process in one query 2026-11-04 12:43:39 +01:00
Matthew Meszaros 095d842aa9 feat: merge main into the mailbox push branch and renumber its migration to 000341_mailbox_push_channels after main took 000339 and 000340 2026-11-04 11:40:14 +01:00
Matthew Meszaros 15541eafe6 Merge pull request #1141 from warmbly/fix/smtp-host-pacing
feat: pace SMTP sessions to a server that is limiting the worker's address
2026-11-03 17:00:28 +00:00
Matthew Meszaros 03cd541c62 feat: pace SMTP sessions per server and worker address after a 421, a 454 sign-in refusal or a dropped STARTTLS, hold due sends without contacting the server, and walk those sends back without spending a lead attempt or raising a mailbox error 2026-11-03 16:59:57 +01:00
Matthew Meszaros 074018cf00 Merge remote-tracking branch 'origin/main' into fix/mailbox-warmup-errors 2026-11-03 16:01:12 +01:00
Matthew Meszaros d241a836f8 feat: sync mailboxes in realtime through Graph change notifications, Gmail Pub/Sub watches and IMAP IDLE that wake the owning worker with SYNC_WAKE, drain stored arrivals continuously, and add an opt-in autoscaling AWS worker fleet without public IPv4 scaled on a published fleet utilization metric 2026-11-03 15:11:24 +01:00
Matthew Meszaros fb7546e141 Merge pull request #1131 from warmbly/feat/bounce-cause-keeps-valid-addresses
feat: decide bounce suppression from the DSN status code and server reply through a shared dsn.Blame rule so mailbox-full, policy, reputation and system bounces keep the address and lead while address-invalid ones suppress, carry the per-recipient status and diagnostic in inbound bounce reasons, reuse the rule in emailverify, and add an optional TYPESAFE_ENDPOINT
2026-11-03 13:15:28 +00:00
Matthew Meszaros 36b77487e3 feat: read the per-recipient DSN group with its Status field as the deciding code, keep policy-tailed and sender-scoped refusals off recipient suppression, reopen completed campaigns when a refused lead is kept, and require https for TYPESAFE_ENDPOINT outside loopback and private hosts 2026-11-03 13:27:07 +01:00
Matthew Meszaros dd6a17ab6f Merge pull request #1135 from warmbly/feat/webhook-catalog-emitted-or-deprecated
feat: emit campaign.completed, inbox.reply_received, email_account.disconnected/error/synced, automation.run and bulk_operation.* webhooks from their control-plane sources, deprecate the five catalog events nothing can deliver, hide them from pickers, and add a source-scan test that every catalog event is emitted or deprecated
2026-11-03 12:01:15 +00:00
Matthew Meszaros 6afc5844b4 feat: emit campaign.completed, inbox.reply_received, email_account.disconnected/error/synced, automation.run and bulk_operation.* webhooks from their control-plane sources, deprecate the five catalog events nothing can deliver, hide them from pickers, and add a source-scan test that every catalog event is emitted or deprecated 2026-11-03 09:47:34 +01:00
Matthew Meszaros d1b717cc06 feat: fence worker sync reports by the transport generation each worker incarnation was loaded with, carried as report_generation on SYNC_STATE 2026-11-03 09:15:40 +01:00
Matthew Meszaros 7a9645123b feat: record the step A/B arm each contact was sent on campaign_contact_progress (migration 000338), report contact-based per-step arm stats with last-step attribution and a Bonferroni-corrected two-proportion z-test winner in GET /campaigns/:id/ab-analysis, implement ab_testing.auto_promote_winner as an audited consumer loop, and show per-arm results, winner and promotion in the step editor and Settings > Sending 2026-11-03 09:12:56 +01:00
Matthew Meszaros 47e52432f5 feat: accept worker sync reports only for the mailbox current transport generation and assert the published sync-state event type and status 2026-11-03 09:01:40 +01:00
Matthew Meszaros 056eada7b2 feat: commit identified mailbox recovery and both sync clocks under one assignment lock with exact legacy schema coverage 2026-11-03 08:39:24 +01:00
Matthew Meszaros d1ae1e2e32 feat: decide bounce suppression from the DSN status code and server reply through a shared dsn.Blame rule so mailbox-full, policy, reputation and system bounces keep the address and lead while address-invalid ones suppress, carry the per-recipient status and diagnostic in inbound bounce reasons, reuse the rule in emailverify, and add an optional TYPESAFE_ENDPOINT 2026-11-03 08:31:36 +01:00
Matthew Meszaros 2da3e7d299 feat: fence identified mailbox sync reports against current worker assignments and verify password-only reauthentication recovery 2026-11-03 08:17:16 +01:00
Matthew Meszaros 2b2079092f feat: report mailbox sync coverage and incoming claims accurately and preserve authenticator verification outcomes 2026-11-03 06:13:49 +01:00
Matthew Meszaros 1b98c61ef9 feat: hold mailbox warmup reply share to its configured target within existing send budgets 2026-11-02 08:59:31 +01:00
Matthew Meszaros 3e7be7ee2e feat: hide temporary sync and send failures on mailboxes that still worked within two hours across the mailbox list, drawer, health summary, advisor and toasts, show non-critical reports as amber Retrying instead of red Error, and warn on the Warmup tab when sending behaviour working days skip warmup days with a one-click fix 2026-11-01 08:38:01 +01:00
Matthew Meszaros 6e73f256c2 feat: recover unknown-outcome send holds automatically by turning campaign send isolation on by default, releasing never-started reservations after 30 minutes, lifting started Unibox, placement and Cloud holds that can never run again (tasks.send_hold_lifted_at, migration 000334) and clearing holds on missing or settled tasks, and replace the provider-confirmation mailbox health message with a no-action-needed one 2026-10-31 09:04:17 +01:00