Skip to content

[Email Service] Fix Python email handler, raw MIME thread replies, and Worker routing quickstart - #35842

Open
ttoino wants to merge 1 commit into
productionfrom
joaop/EMAIL-000-email-docs-routing-workers
Open

ttoino wants to merge 1 commit into
productionfrom
joaop/EMAIL-000-email-docs-routing-workers

Conversation

@ttoino

@ttoino ttoino commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes #35755
Fixes #35756
Fixes #35765

  • Python email() handler (api/route-emails/email-handler.mdx): Update the Python WorkerEntrypoint example to async def email(self, message): (accessing self.env and self.ctx) and distinguish ES module handler parameters from WorkerEntrypoint subclasses in the Parameters section.
  • Raw MIME thread replies (api/route-emails/email-handler.mdx, get-started/route-emails.mdx, examples/email-routing/email-storage.mdx): Omit References while keeping In-Reply-To (required by local Miniflare) across all 4 raw MIME message.reply() examples so Email Service preserves the full thread References chain automatically.
  • Worker routing quickstart (get-started/route-emails.mdx): Add the verified destination address prerequisite for FORWARD_TO_EMAIL inside the Route to Workers tab so message.forward() succeeds.

Documentation checklist

@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

AI Review

✅ Reviewed bd560bf · 0 findings · incremental

Commands
  • /review Run a review now.
  • /full-review Review the entire PR diff.
  • /disable-auto-review Stop automatic reviews.
  • /rebase Rebase against production.

@cloudflare-docs-bot

Copy link
Copy Markdown
Contributor

Review coverage

🟡 1 ownership area needs approval.

Suggested reviewers: @irvinebroque @rpots @thomasgauvin

Needs approval Eligible approvers Suggested
email-service @DiogoSantoss, @rpots, @edevil, @ttoino, @mtourne, @cloudflare/product-owners irvinebroque, rpots, thomasgauvin
CODEOWNERS mappings for displayed areas (1)
Pattern Owners
/src/content/docs/email-service/ @DiogoSantoss, @rpots, @edevil, @ttoino, @mtourne, @cloudflare/product-owners

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://joaop-email-000-email-docs-routing-workers.previews.developers.cloudflare.com (commit bd560bf)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://2a12067e.previews.developers.cloudflare.com bd560bf 2026-11-30T16:20:05.094Z Visit the dashboard ↗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant