MailglassInbound.InboundRecords.InboundRecord (MailglassInbound v0.1.0)

Copy Markdown View Source

Canonical normalized inbound row.

This schema stores adopter-facing truth only. Raw provider payloads, raw MIME, verification facts, parse warnings, and replay execution data live in package-local sibling tables.

Summary

Types

t()

@type t() :: %MailglassInbound.InboundRecords.InboundRecord{
  __meta__: term(),
  attachments: [map()],
  bcc: [map()],
  cc: [map()],
  envelope_recipient: String.t() | nil,
  evidence: term(),
  from: [map()],
  headers: map(),
  html_body: String.t() | nil,
  id: Ecto.UUID.t() | nil,
  inserted_at: DateTime.t() | nil,
  message_id: String.t() | nil,
  provider: String.t() | nil,
  provider_message_id: String.t() | nil,
  received_at: DateTime.t() | nil,
  replay_runs: term(),
  reply_to: [map()],
  sent_at: DateTime.t() | nil,
  subject: String.t() | nil,
  tenant_id: String.t() | nil,
  text_body: String.t() | nil,
  to: [map()],
  updated_at: DateTime.t() | nil
}

Functions

changeset(attrs)

@spec changeset(map()) :: Ecto.Changeset.t()