feat: add method to help with forwarding inbound emails#797
Merged
gabrielmfern merged 2 commits intocanaryfrom Jan 26, 2026
Merged
feat: add method to help with forwarding inbound emails#797gabrielmfern merged 2 commits intocanaryfrom
gabrielmfern merged 2 commits intocanaryfrom
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
commit: |
gabrielmfern
approved these changes
Jan 20, 2026
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.
This PR adds a helper method for forwarding inbound emails that works as shown below.
IMO the most important thing to notice here is that we need to make a call of whether we want to add
mailparseras a dependency because that's necessary for the passthrough forwarding to work.The rest of the code is mostly simple.
This is an SDK-only change.
Summary by cubic
Adds resend.emails.receiving.forward to forward inbound emails, either as-is (passthrough) or as a wrapped forward with the original message attached. Preserves subject, body, and attachments to support simple routing flows.
New Features
Dependencies
Written for commit 18d57b1. Summary will update on new commits.