Matthew Meszaros
59ec622253
feat: classify an IMAP sign-in refusal through the login throttle check before the missing-mailbox override, and redact the longest request URLs first so a URL that prefixes another leaves none of its query in a reported error
2026-11-08 09:56:54 +01:00
Matthew Meszaros
05d61c7635
feat: strip the query from every failed request in a reported error tree, including joined errors, unparseable URLs and quoted queries, and keep an IMAP sign-in refusal worded as a missing mailbox classified as an unknown IMAP error rather than a missing folder
2026-11-08 09:46:09 +01:00
Matthew Meszaros
3ef0b59b8c
feat: classify an older Dovecot's codeless NO Mailbox doesn't exist as a missing folder instead of an unknown IMAP error, strip request query strings from reported errors so internal API failures group by endpoint in PostHog, and narrow the privacy page and dashboard PostHog notes to replays recorded only for sessions that hit an error
2026-11-08 09:34:06 +01:00
Matthew Meszaros
c9ac306788
feat: merge main into the NetEase masked STATUS branch, keeping main's EXAMINE fallback from #1191 in folders.go so this branch adds its masked STATUS regression tests
2026-11-07 18:30:53 +01:00
Matthew Meszaros
475b3b662b
feat: assert the exact UIDVALIDITY, UIDNEXT, message count and HIGHESTMODSEQ an IMAP folder recovers from EXAMINE when its STATUS reply is unpaired, with and without CONDSTORE
2026-11-07 18:01:52 +01:00
Matthew Meszaros
ec9ea297b6
feat: read an IMAP folder's cursors from EXAMINE when the server answers its STATUS under another name (NetEase masks non-ASCII folder names as "???"), so one such folder no longer fails every sync pass of the mailbox, taking mu only for that fallback so listings on servers that pair every STATUS are unchanged
2026-11-07 17:54:33 +01:00
Liu Mingyang
b8b69834e0
test: cover masked STATUS replies for non-ASCII folders
...
This test file verifies the behavior of folder listings when the server responds with masked STATUS replies, particularly for non-ASCII folder names. It includes tests to ensure that folder listings remain consistent and do not trigger unnecessary commands.
2026-11-08 00:47:34 +08:00
Liu Mingyang
e32ed235f6
fix: read folder cursors by EXAMINE when a STATUS reply cannot be paired (NetEase Enterprise Mail)
...
A STATUS reply naming the folder differently (NetEase masks non-ASCII names as "???") is dropped by go-imap, which left zero cursors and failed the whole listing as server unreachable. For non-ASCII folders only, read UIDVALIDITY/UIDNEXT with a read-only SELECT instead. Fixes #1189 .
2026-11-08 00:45:49 +08: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
b8806a5ed5
feat: suppress a bounced address only on clear invalid-recipient evidence by letting the enhanced status beat weak recipient wording in dsn.Blame, adding block markers, quoting the sanitized SMTP server reply in send failures, reading the quoted reply from status-less failure notices, ignoring caller-supplied bounce causes, keeping unclassified bounces off the suppression list, and counting only address bounces as hard bounces in warmup and worker health
2026-11-07 11:01:54 +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
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
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
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
1e4bdcd113
feat: mark an implicit-TLS handshake the server closes as a dropped handshake where the handshake runs, cover it through sendRaw, and order the reserved-start cooldown test through a replaceable timer
2026-11-03 17:39:17 +01:00
Matthew Meszaros
14d11f9a31
feat: treat an implicit-TLS handshake the server closes as server pacing, exempt trailing-dot loopback relays from pacing, and make the reserved-start cooldown test wait for its reservation
2026-11-03 17:31:01 +01:00
Matthew Meszaros
d1d43111d0
feat: key SMTP pacing on the normalized server host and worker address, skip loopback relays, hold reserved starts that land in a later cooldown, measure the spaced window from the cooldown's end, classify dropped STARTTLS by transport error, and cover a long server-pacing retry time live
2026-11-03 17:18:48 +01: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
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
bcef5d160f
feat: enforce hosted SMTP authentication policy across mailbox negotiation and platform relays while preserving self-host compatibility
2026-10-28 09:49:27 +01:00
Matthew Meszaros
6df80cfc5f
feat: verify the platform SMTP relay certificate on hosted production whatever SMTP_TLS_INSECURE_SKIP_VERIFY says, send the SMTP XOAUTH2 bearer token only over TLS or to a loopback host, and report an ignored relay knob in instance health
2026-10-26 06:25:13 +01:00
Matthew Meszaros and Devin AI
79baf46462
feat: keep SMTP mailboxes executable through retryable IMAP startup failures and enforce provider login cooldowns
...
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-25 07:44:19 +00:00
Matthew Meszaros
3532039037
feat: explain each refused mailbox connection in plain words with what to do (a host on a private network address, sign-in offered only unencrypted, no STARTTLS, no supported AUTH mechanism, an unverified or unpinned certificate, a send whose content could not be decrypted) in the connection test, stored mailbox errors and import causes, add an optional reason to API error responses with certificate_untrusted on mailbox_tls_failed for the dashboard's trust option, and treat tls_unverified and tls_pin as post-fixture fields in the Avro envelope test
2026-10-23 19:52:54 +02:00
Matthew Meszaros
4624cc4a74
feat: negotiate mailbox SMTP AUTH by link (LOGIN then PLAIN only over TLS or loopback, CRAM-MD5 last, never a password mechanism in cleartext) for the send path, the connection test and the platform relay, honour MAIL_TLS_INSECURE only under APP_ENV=dev, and trust a mailbox server whose owner opted out of CA verification only on its pinned SPKI SHA-256 via VerifyConnection, reporting TLS_CERTIFICATE_CHANGED or TLS_CERTIFICATE_UNCONFIRMED as retryable connection errors
2026-10-23 16:15:55 +02:00
Matthew Meszaros
46bd956229
feat: give worker SEND_EMAIL commands a 120s deadline that covers the SMTP client's 90s budget, run the worker command subscription under a 195s bus budget (NATS ack wait and Kafka handler context via eventbus.WithHandlerTimeout), and add ordered per-mailbox command lanes on NATS with in-progress heartbeats
2026-10-16 06:57:14 +02:00
Matthew Meszaros
4ee78aebb2
feat: let a verified warmup arrival inside the arrival grace clear a recipient's unreachable result, and refuse an IMAP bare-envelope body fetch whose BODY[] section is missing
2026-10-15 19:30:27 +02:00
Matthew Meszaros
b5891f3365
feat: keep IMAP sync running past RFC 6533 message/global bounces by stepping unreadable envelope fetches down to bare, single and skipped rungs with locally parsed MIME, and read global delivery-status parts as bounce reports on IMAP and Gmail
2026-10-15 19:08:54 +02:00
Matthew Meszaros
853318692a
feat: retain privacy-safe IMAP connection evidence only from current mailbox generation and publish persisted warning text
2026-10-11 16:55:13 +00:00
Devin AI
44cd8f8254
feat: preserve complete IMAP folder presence across bounded sync and stop Graph passes on authoritative provider retry deadlines
2026-10-10 14:42:21 +00:00
Matthew Meszaros
89e456dfb5
feat: preserve IMAP folder sync state on incomplete provider status and honor Graph service retry windows
2026-10-10 13:58:24 +00:00
q
2c6c379feb
feat: step IMAP change queries down to the next form when a server refuses one against a folder that stayed selected, retrying in the same pass, while transient NO answers stay retryable, with refusal and transient dialect tests
2026-10-10 08:45:30 +02:00
q
695ac14b24
feat: read IMAP CONDSTORE changes with UID FETCH CHANGEDSINCE and step down through ESEARCH, plain SEARCH and UIDNEXT when a server's reply cannot be parsed, log unreadable replies with the host, test a per-server dialect table, and document mail server dialects in AGENTS.md and the mailboxes guide
2026-10-10 08:43:16 +02:00
Devin AI
445e014b5e
feat: recover mailbox synchronization across Gmail Outlook and IMAP with encrypted arrival replay and safe worker lifecycle
2026-10-09 14:24:10 +00:00
Devin AI
d090b8e021
feat: complete native and Cloud diagnostic consent immutable shared provider attempt accounting authorized bounded IMAP timing retries conservative feedback pacing and released-schema correction fixtures
2026-10-07 15:12:45 +00:00
Devin AI
8e53fc7027
feat: integrate warmup observation evidence canonical diagnostics send-result recovery cloud trust exact-parent lineage durable dispatch portability and legacy compatibility
2026-10-07 12:38:58 +00:00
KarthikeyaKollu and Claude Opus 5.5
6464ce86f8
fix: ask Zoho for MODSEQ searches as ESEARCH so an empty reply no longer drops the IMAP session ( #857 )
...
Zoho answers an empty UID SEARCH MODSEQ with "* SEARCH (MODSEQ n)", which
go-imap cannot parse; the session dropped on every quiet pass and the mailbox
showed SERVER_UNREACHABLE. Its ESEARCH answer to the same query is well formed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-07 01:28:51 +05:30
Matthew Meszaros
35635afeff
feat: refuse to store webhook and OAuth app signing secrets without CREDENTIALS_ENCRYPTION_KEY and never hand out an unreadable sealed secret, require TLS 1.2 on IMAP sync connections, compare the first-run setup token in constant time, and serve customer-owned domains from the installer's Caddy without HSTS
2026-10-04 03:42:36 -07:00
Matthew Meszaros
43a9d004f2
feat: bound user-authored templates (range only over data fields, two-deep nesting, no template calls, 1 MiB output, capped compile cache) for campaign and automation rendering, accept only single addresses and single Message-IDs for to/cc/bcc/in_reply_to on every send path with invalid_recipient and invalid_message_id, refuse multi-line headers in the Gmail, Graph and SMTP writers, always apply a no-script CSP and drop non-http(s)/mailto/tel link targets in email previews, treat only single-slash paths as internal Remie links, accept integration OAuth callbacks only from the API origin, and follow only http(s) form redirects and app install links
2026-10-04 03:02:37 -07:00
Matthew Meszaros
8db2409a81
feat: read dialTCP and smtpsEgress once at the top of DialSubmission and hand them to the dial goroutines and closeLosers, so the 465/587 race's goroutines that outlive the call never read the package variables a later dial or test may be replacing
2026-10-03 06:24:09 +02:00
Matthew Meszaros
e79551867f
feat: have a worker learn from its own dials when its network blocks outbound 465, dial 587 at once there, tell a mailbox whose server only takes 465 that the block is on the sending side instead of blaming its server, report the block on every heartbeat as the node's last error, rename the admin Workers filter to Has node error, and document the outbound ports a worker needs
2026-10-02 08:02:36 +02:00
Matthew Meszaros
b2d6d100dd
feat: relay unibox Archive, Delete and Move to inbox to the mailbox itself through a new MESSAGE_FOLDER worker command (Gmail label batchModify, Outlook well-known folder moves with the message map re-keyed around each Graph id change, IMAP MOVE after locating each message by Message-ID), answered by relayed UPDATE_FOLDER events that write only provider_folder and the moved handles, relaying every row a filing moved so an Undo right after Archive still reaches the mailbox, with a per-mailbox Mirror Archive and Delete switch (email_accounts.relay_folder_moves, migration 000235, on by default), warmup receipts, drafts and non-Gmail sent copies left in place, and the unibox, mailboxes, API, events and OpenAPI docs updated
2026-09-30 04:41:03 -07:00
Matthew Meszaros
0ed98a8c55
feat: copy up to two colleagues on every email a campaign sends one lead (campaign_lead_cc, migrations 000230-000231) with a drawer CC editor that suggests same-company contacts, hold a copied contact's own lead so nobody gets two threads, count a copy's reply as the lead's, opt out every copy on a link unsubscribe, drop a bounced or refused copy without bouncing the lead, skip suppressed campaign CC and BCC addresses, and document the endpoints, CLI, skills and OpenAPI
2026-09-29 09:53:27 -07:00
Matthew Meszaros
ad4104c57a
feat: never add a warmup strike from a recheck (confirm it, or withdraw it when the message is still in the mailbox or retention removed it since), revise a tampering hold before its strike is deleted so a retry completes it, compare-and-swap the revision on the hold's term, scope the ledger revision to the whole address, keep tampering events 37 days so a live hold's strikes survive pruning, answer an inconclusive search as unknown so IMAP rechecks stop, and return an IMAP transport failure as an error
2026-09-29 05:12:36 -07:00
Matthew Meszaros
e5eb3b0ff1
feat: re-decide a withdrawn warmup tampering hold on the strikes left in the seven days before it was imposed (on the pool row, or the reputation ledger for a mailbox out of every pool), stamp an old strike verified only when a worker answers its search and ask again after six hours, retry a removal check for a mailbox still loading, redeliver a failed strike, search IMAP folders in one session hold, and share the Message-ID search helpers
2026-09-29 04:57:45 -07:00
Matthew Meszaros
c5a981d86c
feat: record a warmup deletion strike only after the worker searches the mailbox and finds the message in the trash or gone, so a move reported as a removal (Graph, a provider filter, a mailbox rule, a second Warmbly instance, our own filing) is never charged, withdraw strikes whose message is still in the mailbox and lift the pause or block they imposed, recheck deletion strikes recorded before the search once via warmup_tampering_events.verified_at (000229), and clarify the tampering reasons and warmup guide
2026-09-29 04:28:34 -07:00
Matthew Meszaros
a5def657b9
feat: keep the IMAP sync view when re-opening it fails so every later sync step retries or refuses instead of reading the folder a warmup action selected, drop the unused Mailbox select that bypassed the session lock, and shorten the new comments
2026-09-28 09:01:21 -07:00
Matthew Meszaros
0f16fa60a7
feat: serialize every IMAP sync step with warmup actions on the shared session and re-open the sync's folder after an action, so a warmup MOVE always runs against the folder it selected and filing into the Warmbly folder lands on servers like Zoho
2026-09-28 08:46:19 -07:00
Matthew Meszaros
208481f9a4
feat: answer a signup for an existing address with 409 conflict and let a concurrent SSO first sign-in resolve against the account it raced, adopt the stored organization DEK when a parallel first use stored one first, classify IMAP SERVERBUG, LIMIT, bare read-command failures and provider ALERT/EXPIRED responses as server-unreachable, throttle or credentials errors and keep the ALERT text, wait up to two minutes for a free connection slot before the boot migration gives up, guard the dashboard's DOM mutations against browser page translation, treat an aborted passkey sign-in as a cancellation, and drop posthog-js request timeouts from error tracking
2026-09-27 08:26:55 +02:00