Sovite.Queue.Envelope (sovite v0.2.0)

Copy Markdown View Source

The envelope of a queued message: who sent it, to whom, and how it arrived.

sender is "" for the null reverse-path (MAIL FROM:<>).

notification is set on delivery status notifications Sovite generates itself: :failure, :delay, or :double_bounce (a failed notification reported to the postmaster). A failed :double_bounce is never reported again, so notifications cannot loop.

Summary

Types

t()

@type t() :: %Sovite.Queue.Envelope{
  body_type: :"7bit" | :"8bitmime" | nil,
  helo: String.t() | nil,
  notification: :failure | :delay | :double_bounce | nil,
  protocol: String.t() | nil,
  queue_id: String.t(),
  received_at: DateTime.t() | nil,
  recipients: [String.t(), ...],
  remote_ip: :inet.ip_address() | nil,
  sender: String.t(),
  session_id: String.t() | nil
}