Skip to content

Release busabase-email-sdk 0.1.1 - #102

Merged
mr-kelly merged 2 commits into
mainfrom
release/busabase-email-sdk-0.1.1
Oct 24, 2026
Merged

mr-kelly merged 2 commits into
mainfrom
release/busabase-email-sdk-0.1.1

Conversation

@mr-kelly

Copy link
Copy Markdown
Contributor

Releases busabase-email-sdk 0.1.1. Only packages/busabase-email-sdk changes; no other package or version moves.

What changes

  • Bounces that arrive later are matched. A delivery-failure notice now carries bounce.recipients (the addresses that failed) and bounce.originalMessageId, read from the RFC 3464 report, X-Failed-Recipients, or the attached original message. Tencent Exmail sends no report and no thread headers, only an HTML notice with the original attached as mail.eml, so 0.1.0 never matched those. The Busabase store records a bounce's contact as the failed recipient instead of postmaster@ / mailer-daemon@.
  • Delays are not bounces. A report in which no recipient failed (delay warning, delivery confirmation), or a notice without a report that cites only temporary 4xx SMTP codes, is classified auto-reply. A notice citing no code at all stays a bounce.
  • Inbox sync reads headers first. readImapReplies fetches in UID FETCH chunks of 25 and accepts download: "matched": headers first, then the full message only when the headers match the watch or the message looks like a bounce. syncImapReplies uses it; the default for readImapReplies stays "all".

Verification

  • Package typecheck, tests (65), Biome, build, and .github/scripts/check-email-package.mjs pass on this branch; whole-repo biome check . passes.
  • Real Tencent Exmail inbox: three real bounce notices (two Exmail, one Gmail) were unmatched or recorded against the mailer daemon with 0.1.0, and are matched to the original message with the failed recipient on this version. All five real Exmail notices in that inbox cite 550 / 5.7.26 and stay bounces.
  • Same inbox, 596 messages: 701 s with 0.1.0, 163 s with download: "matched", identical per-message results. A reply-check script built on the SDK read about 2,200 messages in 381 s instead of 2,598 s and found the same reply.

🤖 Generated with Claude Code

mr-kelly and others added 2 commits October 24, 2026 11:22
- Bounce notices carry `bounce.recipients` and `bounce.originalMessageId`, read
  from the RFC 3464 report, X-Failed-Recipients, or the attached original
  message. Tencent Exmail sends no report and no thread headers, only an HTML
  notice with the original attached, so such notices were never matched; they
  now match the outgoing message and are recorded against the failed recipient
  instead of postmaster or mailer-daemon.
- A report in which no recipient failed, or a notice without a report that cites
  only temporary 4xx SMTP codes, is classified auto-reply, so an address that is
  still being retried is not marked undeliverable.
- readImapReplies downloads in UID FETCH chunks of 25 and accepts
  `download: "matched"`: headers first, the full message only when the headers
  match the watch or the message looks like a bounce. syncImapReplies uses it.
  On a real 596-message inbox: 701 s before, 163 s after, identical results.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mr-kelly
mr-kelly enabled auto-merge (rebase) October 24, 2026 03:22
@mr-kelly
mr-kelly merged commit 84be173 into main Oct 24, 2026
9 checks passed
@mr-kelly
mr-kelly deleted the release/busabase-email-sdk-0.1.1 branch October 24, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant