Matthew Meszaros
f174f8250b
feat: renumber the mailbox sign-in scopes and switch migration to 000362 after main took 000361
2026-11-07 08:53:32 +01:00
Matthew Meszaros
18b5e0c7b6
Merge remote-tracking branch 'origin/main' into feat/google-trusted-app-signin
2026-11-07 08:52:27 +01:00
Matthew Meszaros
a2b5db3dc5
feat: test that FindUIDInFolder returns a refused SELECT as an error while FindUIDByMessageID reads it as no match, against the in-memory Gmail-shaped IMAP server
2026-11-07 08:38:32 +01:00
Matthew Meszaros
4ede5e0914
feat: look up Gmail warmup messages with FindUIDInFolder, which reports a failed SELECT as an error so the rescue hands the action to the Gmail API instead of recording it as already out of spam
2026-11-07 08:27:47 +01:00
Matthew Meszaros
35f8854a8f
feat: renumber the edge_hostnames migration to 000361 after main took 000360
2026-11-07 08:18:18 +01:00
Matthew Meszaros
7c614cc81b
feat: drop the old zone's activation record along with its status when a failed edge hostname attempt moves the row to a new Cloudflare zone
2026-11-07 08:17:45 +01:00
Matthew Meszaros
2a8ea14a1c
feat: scope edge hostname verdicts to the Cloudflare zone, sweep the longest-waiting hosts first with a separate removal budget, put back a name registered while it was being removed, bound registration inside a redirect check to five seconds, and correct the configuration, Fargate and sending-domain docs for the edge setup
2026-11-07 08:17:45 +01:00
Matthew Meszaros
5327115209
feat: read Cloudflare's own refusals (errors 1000, 1001 and 1014) in the redirect visit check as edge_record and edge_inactive hints, and show the records to replace or the activation record in the redirect's fix panel instead of proxy steps
2026-11-07 08:17:45 +01:00
Matthew Meszaros
527b982111
feat: register every verified tracking host and redirect domain (root and www) as a Cloudflare for SaaS custom hostname when CLOUDFLARE_SAAS_* is set, show a root CNAME and its activation TXT behind that edge, point the www record at the root, and let the AWS tracking listener forward unmatched hosts to tracking behind tracking_serves_unmatched_hosts
2026-11-07 08:17:45 +01:00
Matthew Meszaros
01e7c022aa
feat: renumber the mailbox sign-in scopes and switch migration to 000361 after main took 000360
2026-11-07 08:15:36 +01:00
Matthew Meszaros
0989440f0d
Merge remote-tracking branch 'origin/main' into feat/google-trusted-app-signin
2026-11-07 08:15:19 +01:00
Matthew Meszaros
ccede8a910
feat: renumber the mailbox sign-in scopes and switch migration to 000360 after main took 000357-000359
2026-11-07 07:34:36 +01:00
Matthew Meszaros
568df446b6
Merge remote-tracking branch 'origin/main' into feat/google-trusted-app-signin
2026-11-07 07:30:50 +01:00
Matthew Meszaros
ba07007fc0
feat: hand Gmail warmup engagement that fails over IMAP to the Gmail API (resolving the Gmail id when needed) and retry IMAP six hours after a refusal the worker saw, keep a vendor consent pending or settled across cache errors and racing callbacks, refuse a personal Gmail address at the end of Google sign-in, let a domain whose Google mailboxes arrived in a workspace import make its grant again, offer Google reconnects only where the instance has a Google client, batch bulk vendor reconnects by 1000, and confirm before discarding a typed app password
2026-11-07 07:25:24 +01:00
Matthew Meszaros
9fcb975314
feat: disable a referral discount code when its referral code is deleted with its owner, disable referral discounts already left without a code, and keep the old referrals-and-discounts and promo-codes-and-referrals docs anchors working
2026-11-07 06:55:33 +01:00
Matthew Meszaros
7325715c80
feat: remove the referral program from settings, the iOS billing page, the marketing site and the docs, stop attributing new signups to referral links, keep rewarding and clawing back referrals already attributed, and let a referral-backed discount code apply only to the workspace that signed up through it
2026-11-07 06:55:33 +01:00
Matthew Meszaros
88f6cd413b
feat: renumber the provider_access_restored send recovery evidence migration to 000359 after main took 000357 and 000358
2026-11-07 05:56:01 +01:00
Matthew Meszaros
61d3dac8d4
Merge remote-tracking branch 'origin/main' into fix/release-send-safety-hold
2026-11-07 05:55:19 +01:00
Matthew Meszaros
f57e0cf8b4
feat: release a provider-restored send hold whose refused task is gone only after a sync in the last hour, record a missing task as NULL in both hold releases, and say a resume can wait up to 6 hours after a refused retry
2026-11-07 05:52:15 +01:00
Matthew Meszaros
1bdad5cf86
feat: record the optional full_mail_access field on ADD_EMAIL in the published worker command schema (testdata/worker-commands.avsc)
2026-11-07 05:45:39 +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
5d541df713
feat: renumber the campaign copy warmup_tokens step columns and their index to migrations 000357 and 000358 after main took 000355 and 000356
2026-11-07 05:21:06 +01:00
Matthew Meszaros
57c60d4969
feat: add a Sign-in section to the mailbox drawer that shows how each Google mailbox signs in and offers only the switches that can succeed (reconnect through InboxKit or Zapmail with live progress, reconnect with Google behind the trusted-app step, move onto an existing domain grant, switch to a verified app password), point the Overview tab at it, add Reconnect all Google mailboxes to vendor accounts and per-vendor reconnects to the sign-in banner via email_account_ids on POST /emails/vendors/:id/reconnect, refresh it all through the email_account and mailbox_vendor audit spine, add the Mailbox sign-in toggle for mailbox_signin.auto_vendor_reconnect to the admin settings, and document switching, the automatic vendor reconnect and the new routes and fields
2026-11-07 05:20:34 +01:00
Matthew Meszaros
dea6692dde
feat: record the scopes Google granted each mailbox token (email_accounts_oauth.granted_scopes, migration 000357) at connect, reauth and vendor convert, list only Google sign-ins without full mail access as retiring with the vendor that can reconnect them, tell workers through ADD_EMAIL full_mail_access to skip Gmail IMAP for a token known to lack it, let an app password take over a delegated Google mailbox after the worker check, add GET /emails/:id/signin with only the switches that can succeed, record vendor reconnect progress per mailbox on the audit spine, and reconnect vendor-linked Google mailboxes automatically behind mailbox_signin.auto_vendor_reconnect with one attempt in flight and a week between attempts
2026-11-07 05:20:33 +01:00
Matthew Meszaros
c10ef21908
feat: connect vendor Google mailboxes by having InboxKit or Zapmail trust the BOX_GOOGLE client on the domain and complete each mailbox's consent at a single-use server-side vc. state finished in the Google callback, retire new domain-wide delegation requests, and add POST/GET /emails/vendors/:id/reconnect to renew or convert linked Google mailboxes in place
2026-11-07 05:20:33 +01:00
Matthew Meszaros
638e5fd10e
feat: refuse a Google domain-wide delegation grant for a domain the workspace holds none for with google_delegation_retired in StartGoogle, FinishGoogle and the vendor grant path, stop offering Google delegation to vendors, keep re-proving, checking, connecting and removing existing grants, and report google_mailbox_client_id whenever a Google sign-in client is configured
2026-11-07 05:20:33 +01:00
Matthew Meszaros
bfe198986c
feat: report the per-mailbox Google sign-in client as google_mailbox_client_id on GET /emails/grants/config for the Workspace trusted-app step, and refuse a Google OAuth start hinting a gmail.com or googlemail.com address with google_personal_app_password
2026-11-07 05:20:23 +01:00
Matthew Meszaros
1db1ea0835
feat: request https://mail.google.com/ for new Google sign-in mailboxes (reauth still accepts gmail.modify) and run Gmail warmup engagement (spam rescue, mark read, star, mark important) over imap.gmail.com with the mailbox's own token, including delegated mailboxes through an optional mail.google.com delegation scope minted via ?purpose=imap on the internal token route, falling back per mailbox to the Gmail API when the scope or IMAP access is missing, with docs for scopes, warmup and existing delegation entries
2026-11-07 05:20:23 +01:00
Matthew Meszaros
a22d15efd6
Merge remote-tracking branch 'origin/main' into devin/template-warmup
2026-11-07 05:18:49 +01:00
Matthew Meszaros
87c3759f95
Merge pull request #1175 from warmbly/feat/free-trial-plan
...
feat: 14-day free trial with 2 mailboxes, once per owner
2026-11-06 19:12:22 +00:00
Matthew Meszaros
75cc1811ed
feat: claim the owner's free trial and write its subscription in one statement, retry a trial expiry whose warmup pause failed, and re-render trial gates and both countdowns from the clock at the trial end and each day boundary
2026-11-06 19:49:59 +01:00
Matthew Meszaros
076912374b
Merge pull request #1178 from warmbly/fix/warmup-posthog-errors
...
feat: wait quietly for a warmup send's Message-ID, settle holds whose send failed or was cancelled, and treat an in-flight scheduled generation batch as already topping up its segment
2026-11-06 18:22:34 +00: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
3f055a26b1
feat: pause trial warmup at expiry stamped with the trial end and resume exactly those mailboxes on payment or a granted plan so the ramp continues where it stopped, hand a trial claim back when its subscription write fails, refresh the dashboard when a trial ends, round days left up on both countdowns, and qualify trial copy by owner
2026-11-06 19:01:18 +01:00
Matthew Meszaros
5a421d8a0b
Merge pull request #1174 from warmbly/fix/account-deletion-keep-ending
...
feat: reassert period-end cancellation on owned subscriptions after an account deletion commits
2026-11-06 17:59:36 +00:00
Matthew Meszaros
3cddee0763
feat: reassert period-end cancellation after an account deletion only for an owned subscription Stripe reports as renewing again, leaving ending and canceled ones untouched and unreported
2026-11-06 18:46:10 +01:00
Matthew Meszaros
6c73120bc6
feat: classify Gmail's [ALERT] Invalid credentials as the credentials refusal for the mailbox's auth kind and an IMAP TRYCREATE on a sync command as a missing folder, and stop reporting GOOGLE_AUTHENTICATION_FAILED and INVALID_CREDENTIALS from the worker to PostHog since the relay already deactivates the mailbox and tells its owner
2026-11-06 18:40:25 +01:00
Matthew Meszaros
0135dc8d7d
feat: classify Zoho's wrong-region [ALERT] ("The server details you are using seems incorrect") as an INVALID_CREDENTIALS wrong-server error in the IMAP classifyAlert, keeping Zoho's alert text in the message and titling it Wrong mail server with an Update credentials action, so the mailbox is disconnected for its owner once instead of reporting IMAP_UNKNOWN to PostHog on every sync pass
2026-11-06 18:38:18 +01:00
Matthew Meszaros
6acd093e5f
feat: give every new hosted workspace a 14-day no-card free trial with 2 mailboxes warming in the free pool and 20 sends a day, claimed atomically once per owner (later workspaces start unpaid), pause instead of wiping warmup when it ends, and show the countdown, trial-ended states, billing, docs and site pricing to match
2026-11-06 18:37:46 +01:00
Matthew Meszaros
8a71ad72cb
feat: after an account deletion commits, set every owned subscription it confirmed as ending to end at period close again, so a resume landing between the Stripe check and the commit does not keep billing a deleted workspace
2026-11-06 18:28:56 +01:00
Matthew Meszaros
4f6d639471
feat: refuse account deletion over attachments on another workspace's campaigns, report failures to record a deletion's outcome, and reduce a DNS failure in the migration connection reason to its kind
2026-11-06 17:53:58 +01:00
Matthew Meszaros
ce4b8d43c8
feat: lock the user row for the whole account deletion so nothing can be attached to the account in another workspace between the shared-work check and the delete
2026-11-06 17:31:21 +01:00
Matthew Meszaros
6d937eb112
feat: confirm with Stripe, while the owned workspaces are locked, that no owned subscription will renew before an account deletion removes them, so a resume whose webhook has not landed still holds the deletion
2026-11-06 17:27:25 +01:00
Matthew Meszaros
74c51bfc82
feat: document account deletion refusals in their own error-code section, cover every non-renewing subscription state in the billing refusal test, and hide the address of a migration connection dropped mid-run
2026-11-06 17:15:31 +01:00
Matthew Meszaros
73f1e5dbb7
feat: accept invitations whose inviter was deleted, hand another workspace's subscription to its owner on account deletion, refuse it over shared assistant conversations, recheck refused account deletions daily, and show only the public sentence of a sensitive migration connection error
2026-11-06 17:09:55 +01:00
Matthew Meszaros
f64a916fb9
feat: refuse account deletion while the account holds mailboxes, contacts, campaigns, templates, API keys, apps or subscriptions in workspaces it does not own or an owned workspace renews, lock owned workspaces before erasing them, and keep decoder text and migration connection details out of logs and error reports
2026-11-06 16:48:20 +01:00
Matthew Meszaros
4ed928e79b
feat: name an undecodable Graph success body as msgraph.ErrUnreadableResponse and keep it out of worker error reports, so the pass retries without fabricating a server-unreachable event
2026-11-06 16:24:28 +01:00
Matthew Meszaros
cdb25778c9
feat: classify a Graph success response whose body is not JSON as a retryable server-unreachable mail error in doJSON and FetchMessage instead of an unclassified decode error
2026-11-06 16:07:24 +01:00
Matthew Meszaros
d7be2b7aa0
feat: report a failed database connection to PostHog and Sentry as its SQLSTATE alone, without the database user or addresses pgconn puts in the message
2026-11-06 16:07:24 +01:00
Matthew Meszaros
c7fe8d193f
feat: complete scheduled account deletion by deleting owned workspaces first and keeping authored rows in other workspaces through ON DELETE SET NULL references to users (migrations 000355/000356), with admin listings left-joining deleted actors
2026-11-06 16:07:24 +01:00