Repository navigation
Phase 3a: inbound mail becomes tickets - #1928
Merged
neuromechanist merged 11 commits intoOct 24, 2026
Merged
neuromechanist merged 11 commits into
neuromechanist merged 11 commits into
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR1928Version: 🤖 Updated on each push. |
neuromechanist
merged commit Oct 24, 2026
d32796e
into
feature/issue-1893-epic-email-cf
14 checks passed
This was referenced Oct 24, 2026
Merged
This branch was previously deployed
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.
Summary
Backend core of Phase 3. After the unchanged raw put, inbound mail is parsed (
postal-mime) and filed as a support ticket in D1.mail_queues,mail_tickets,mail_messages,mail_ticket_tags,mail_ticket_events,mail_availability. Seeds:securityandconductrestricted and unassigned; every other queue (*) assigned to thenemarAdminadmin account by default.+t<ref>reply address, thenIn-Reply-To/References; tags from the recipient local part and plus tag; authentication results from the topmostAuthentication-Results; spam (DMARC fail or no pass at all) gets its own ticket, is never threaded, assigned or notified; account linking only on a DMARC pass. A reply reopens a closed or pending ticket.fixed,round_robinorpoolper queue, away windows with an optional backup; restricted queues only ever go to an owner who is not the ticket's excluded account. Admins are not distinguished by kind (person or agent).reprocessRawKeyrebuilds idempotently (the route is in 3b).Part of #1896, epic #1893.
Test plan
tickets-ingest,ticket-assignment,mail-ticket-cascadessuites🤖 Generated with Claude Code