Repository navigation
Conversation
One domain sends and receives, a code after a plus reaches its rule once subaddressing is on, and email failing a reject policy never reaches the Worker. Cloud receives at reply@openchat.run, by the owner's choice. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Patrick Ng <yatping0617@gmail.com>
A reply email's Reply-To is an address of its own, reply+<token>@, of which only a hash is kept. The Worker's email handler refuses unknown addresses, drops automatic email, stores the rest in R2 and queues email.inbound. The job reads it with postal-mime, cuts what the mail app quoted, keeps the attachments the widget would take, and writes the visitor's message once, however often the email or the job arrives. The inbox marks it as sent by email, with the sender's address when it is not the contact's. oc deploy --reply-email sets it up. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Patrick Ng <yatping0617@gmail.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Patrick Ng <yatping0617@gmail.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.
Step 2 of ADR-0029, stacked on #221.
What it does
A visitor can answer a reply email from their mail app, and the answer appears in the same conversation as their message, marked Sent by email.
reply+<token>@…. Only the token's hash is stored (conversation_reply_addresses, migration 0045, a new table only).emailhandler refuses unknown addresses, drops automatic email, refuses over 10 MiB and over 30 an hour for a token, then stores the email in R2 and queuesemail.inbound.postal-mime(new dependency, MIT-0, approved by the ADR), cuts what the mail app quoted, keeps up to five attachments of the widget's kinds, and writes the message once however often the email or job arrives.oc deploy --reply-email <address>adds one Email Routing rule and an R2 lifecycle rule. Subaddressing is a step by hand in the Cloudflare dashboard.Where it differs from the ADR as accepted
Marked "As built" in the ADR: one token for each email, not one for each conversation;
wrangler email routing rules createand not theaddressesfield, which would reset a domain's other rules; refused attachments are counted, not written as a line of text. OpenChat Cloud receives on the apex, by the owner's choice.Checked
pnpm verifyparts: lint, typecheck, 1,394 API tests (26 new), build, contracts, migrations, licences, budget, secrets, channel.cloudflare-validation.md: the three points the ADR left open, then the feature end to end on a throwaway installation.🤖 Generated with Claude Code