Karta.Outbound.Recipient (Karta v1.0.0)

One envelope recipient of an outgoing message, and its delivery state.

Status:

  • :queued - not tried yet.
  • :deferred - tried, failed temporarily; tried again at next_attempt_at.
  • :delivered - a server accepted the message for this recipient.
  • :bounced - failed permanently, or still failing when the retry period ended.
  • :suppressed - on the server's suppression list when the message was accepted; never tried.
  • :cancelled - a scheduled message an operator cancelled before it was tried; never tried.

held_at is set while an operator holds a :queued or :deferred recipient: nothing sends it until it is released (Karta.Outbound.Actions).

attempts counts the attempts made; last_code, last_enhanced and last_details describe the latest outcome. notify and orcpt are the submitter's DSN parameters for this recipient (RFC 3461 §4.1, §4.2): notify is nil when none was given. dsn_message_id is the delivery status notification sent about this recipient, if any.

Summary

Types

t()

@type t() :: %Karta.Outbound.Recipient{
  __meta__: term(),
  address: term(),
  attempts: term(),
  domain: term(),
  dsn_message_id: term(),
  held_at: term(),
  id: term(),
  inserted_at: term(),
  last_code: term(),
  last_details: term(),
  last_enhanced: term(),
  message: term(),
  message_id: term(),
  next_attempt_at: term(),
  notify: term(),
  orcpt: term(),
  status: term(),
  updated_at: term()
}