Karta.Bounces.DSN.Report (Karta v1.0.0)

What a delivery status notification says, as Karta.Bounces.DSN read it: the report's own Message-ID, the reporting MTA, the original envelope id and arrival time, and one group of fields per recipient.

A group's kind is what the notification says happened: :hard (a permanent failure), :soft (a temporary one), :success (delivered or relayed) or :unknown (no status Karta can read). status is the enhanced status code (RFC 3463) when the report gives one and code the three-digit SMTP reply the diagnostic quotes. The addresses are as received, without their type (rfc822;); nothing in a report is trusted beyond what it says about the delivery.

Summary

Types

What the notification says happened to one recipient.

t()

Types

group()

@type group() :: %{
  kind: kind(),
  status: String.t() | nil,
  code: integer() | nil,
  action: String.t() | nil,
  final_recipient: String.t() | nil,
  original_recipient: String.t() | nil,
  remote_mta: String.t() | nil,
  diagnostic: String.t() | nil
}

kind()

@type kind() :: :hard | :soft | :success | :unknown

What the notification says happened to one recipient.

t()

@type t() :: %Karta.Bounces.DSN.Report{
  arrival: String.t() | nil,
  envid: String.t() | nil,
  groups: [group()],
  message_id: String.t() | nil,
  reporting_mta: String.t() | nil
}