Karta.Suppressions.Suppression (Karta v1.0.0)

An address a server does not send to.

address is kept as local@domain with the domain in lower-case ASCII form (Karta.Suppressions.normalise/1) and compared without case. reason says why: :manual (added by someone), :unsubscribe (the recipient asked), :hard_bounce or :complaint (reported by receiving servers). source records who or what added it. From expires_at on (when set) the suppression no longer counts.

Summary

Functions

Input sets the address, the reason and the expiry; the server and source are set by the context.

Every reason a suppression can have.

Types

t()

@type t() :: %Karta.Suppressions.Suppression{
  __meta__: term(),
  address: term(),
  expires_at: term(),
  id: term(),
  inserted_at: term(),
  reason: term(),
  server: term(),
  server_id: term(),
  source: term(),
  updated_at: term()
}

Functions

changeset(suppression, attrs)

Input sets the address, the reason and the expiry; the server and source are set by the context.

reasons()

@spec reasons() :: [atom()]

Every reason a suppression can have.