package async_smtp
Module Async_smtp.Smtp_spool_messageSource
t does not contain the full envelope. The envelope is loaded from disk and then stored back to disk only when changes need to be made.
The head of this list is the time at which we should attempt a delivery after the next time a delivery fails.
Currently not used, but saved to disk to aid in triaging frozen messages and failed deliveries. Addresses on this list will not be included in remaining_recipients, and would otherwise be lost to the ether.
Data.t is an on-disk Email.t. The type is abstract because we store a dot-encoded email on disk.
Source
val of_envelope_batch :
Async_smtp_types.Smtp_envelope.Routed.Batch.t ->
gen_id:(unit -> Id.t Async.Deferred.Or_error.t) ->
spool_dir:string ->
spool_date:Core.Time_float.t ->
failed_recipients:Async_smtp_types.Email_address.t list ->
relay_attempts:(Core.Time_float.t * Core.Error.t) list ->
parent_id:Async_smtp_types.Smtp_envelope.Id.t ->
status:Status.t ->
flows:string list ->
(t * Data.t * Async_smtp_types.Smtp_envelope.Routed.t) list
Async.Deferred.Or_error.t