Skip to content

fix: route inbound email by envelope recipient#33

Open
Lubrsy706 wants to merge 1 commit into
cloudflare:mainfrom
Lubrsy706:fix/email-envelope-recipient-routing
Open

fix: route inbound email by envelope recipient#33
Lubrsy706 wants to merge 1 commit into
cloudflare:mainfrom
Lubrsy706:fix/email-envelope-recipient-routing

Conversation

@Lubrsy706
Copy link
Copy Markdown

Closes #32.

Summary

  • route inbound email using the SMTP envelope recipient from event.to
  • keep a parsed To header fallback for environments without envelope data
  • thread the resolved recipient through the worker app handler

Testing

  • npm ci --no-audit --no-fund --loglevel=warn
  • npm run typecheck

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.

Route inbound mail by SMTP envelope recipient, not To: header

1 participant