feat(email): accept custom message headers in sendRaw#3411
Merged
Conversation
Lets callers set transport-level headers such as List-Unsubscribe / List-Unsubscribe-Post. Also documents the puter-email driver's automatic unsubscribe / report-abuse footer and the new `suppressed` result field in the puter.js email module.
Contributor
Coverage Report for puter.js SDK
File Coverage
|
||||||||||||||||||||||||||||||||||||||
Contributor
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
…sult type Adds an optional `envelope` field to SendMailOptions so callers can set transport recipients independently of the visible To/Cc headers (used by the email-send driver for per-recipient deliveries), and adds the `suppressed: string[]` field to the public EmailSendResult typing to match the driver's documented result. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The email-send driver now attempts every recipient's private delivery even when one fails, returning failed addresses in the result's `failed` array instead of failing the whole call — so callers retry only the failed subset and never re-mail delivered recipients. Adds the field to the public EmailSendResult typing and module docs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an optional
headersfield toSendMailOptionsso callers can set transport-level message headers — needed by theputer-emaildriver to attachList-Unsubscribe/List-Unsubscribe-Post(RFC 8058 one-click) headers to app-sent mail. Nodemailer already passesheadersthrough at runtime; this is a type-level addition.Also updates the puter.js
Emailmodule JSDoc to document the driver's new recipient protections: every app-sent mail gets an automatic unsubscribe / report-abuse footer, unsubscribed recipients are dropped from future sends and returned in the result'ssuppressedarray, and a send whosetolist is entirely unsubscribed is rejected.Companion to HeyPuter/heyputer#1090 (recipient links, suppression list, abuse-report tracking + security notification).