Karta. Inbound. Delivery
(Karta v1.0.0)
One recipient of a received message, and what became of it.
Status:
:pending- on its way to the route's endpoint; tried again atnext_attempt_atafter a failure;:delivered- the endpoint took it;:failed- the endpoint refused it, or kept failing until the retry period ended. No bounce is sent: the sender of received mail is not known to be genuine;:accepted- stored only (a route in:acceptmode);:held- stored and held (a route in:holdmode).
attempts counts the attempts; last_code (the HTTP status or the SMTP
reply code, nil when nobody answered) and last_details describe the
latest. deleted_at is set when the owner of the mailbox deleted the
delivery through the Kantoor interface (Karta.Kantoor.Deliveries); a
deleted delivery is no longer dispatched, listed or served there, and the
message goes with the last delivery to be deleted. retention_keep and retention_days are the delivery's retention policy
(Karta.Kantoor.Retention), from its route or from the endpoint's answer;
both nil: the server's setting. forward_message_id is the outgoing message that forwarded it to
an address endpoint.
Summary
Types
@type t() :: %Karta.Inbound.Delivery{ __meta__: term(), address: term(), attempts: term(), deleted_at: term(), endpoint: term(), endpoint_id: term(), forward_message_id: term(), id: term(), inserted_at: term(), last_code: term(), last_details: term(), message: term(), message_id: term(), next_attempt_at: term(), retention_days: term(), retention_keep: term(), route: term(), route_id: term(), server: term(), server_id: term(), status: term(), updated_at: term() }