Message
mail_intake.models.message
Summary
Message domain models for Mail Intake.
This module defines the canonical, provider-agnostic representation of an individual email message as used internally by the Mail Intake ingestion pipeline.
Models in this module are safe to persist and must not contain any provider-specific fields or semantics.
Classes
MailIntakeMessage
dataclass
Canonical internal representation of a single email message.
Notes
Guarantees:
1 2 3 | |
Constraints:
1 2 | |
Attributes
raw_headers
instance-attribute
Normalized mapping of message headers (header name → value).
thread_id
instance-attribute
Provider-specific thread identifier to which this message belongs.
timestamp
instance-attribute
Message timestamp as a timezone-naive UTC datetime.