Abstract
This publication discloses, enablingly and in dated public form, a mechanism for inbound email delivery that simultaneously serves a human mail client and an autonomous software agent from a single ingress event, without duplicating the message, forking the pipeline, or degrading store fidelity. One webhook endpoint accepts two payload shapes — raw MIME posted as base64 by a byte-preserving edge worker, or already-parsed legacy JSON — and discriminates between them at runtime by the presence of a non-empty raw carrier field. Threading headers (Message-ID, In-Reply-To, References, Cc) are extracted continuation-aware directly off the raw bytes so that RFC 5322 folded headers do not silently corrupt conversation grouping. Each envelope recipient is canonicalized against a persona mailbox record whose match may be the primary address or a member of a JSON-encoded alias array, using an escaped ILIKE predicate ranked exact-primary-first. Then, per recipient, the system drives two independent planes: (1) a durable plane that re-injects the original, untouched MIME into an IMAP-backed store over internal SMTP with an envelope-only rewrite, preserving DKIM signatures and attachments byte-for-byte; and (2) a realtime plane that emits a normalized mail:received bus event carrying a deterministic thread key, a quote-stripped body, and a computed reply-all set. The deterministic thread key correlates the two planes so an agent's reply lands in the same human-visible thread. Per-recipient try/catch isolates failures. The mechanism is disclosed to bar exclusive patent capture.
Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 License.
Recommended Citation
Assuncao, gustavo matthew, "Dual-Plane Inbound Email Delivery", Technical Disclosure Commons, ()
https://www.tdcommons.org/dpubs_series/10939