MailKit
Use this contract for mail, message, and archive results. It is designed for inbox, archive, and legal-hold scenarios where teams need message threading, attachment extraction, retention review, eDiscovery, and downstream automation from a consistent public output.Top-level envelope
Document fields
Universal content/block shape
Every public content record uses the same base shape.
Common record types include
folder, mailbox, message, embedded_message, attachment, body_part, recipient, appointment, contact, task, distribution_list, participant, tnef_payload, smime_entity, signed_entity, and encrypted_entity.
Warnings
warningsis always present.- Use plain strings.
- Keep warnings readable.
- Do not use warnings instead of structured content.
What clients can rely on
- Order stays deterministic.
- Structural paths stay explicit.
- Provenance stays attached when available.
- Attachment bytes are not inlined in the public contract.
- The public contract does not expose internal transport or worker details.

