Module Async_smtp__Message.Data

Data.t is an on-disk Email.t. The type is abstract because we store a dot-encoded email on disk.

type t
val to_email : t -> Async_smtp_types.Email.t
val of_email : Async_smtp_types.Email.t -> t
val load : string -> t Async.Deferred.Or_error.t
val save : ?⁠temp_file:string -> t -> string -> unit Async.Deferred.Or_error.t