Module Email_message__.Email_content
module Multipart : sig ... end
type t
=
|
Multipart of Multipart.t
|
Message of Email_message.Email.t
|
Data of Email_message.Octet_stream.t
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val parse : ?container_headers:Email_message__.Headers.t -> Email_message.Email.t -> t Core.Or_error.t
parse ?container_headers email
parses the content ofemail
. The default content type of a multipart body changes based on the container headers. This only comes into play if the container had "Content-Type: multipart/digest".
val to_email : headers:Email_message__.Headers.t -> t -> Email_message.Email.t
val set_content : Email_message.Email.t -> t -> Email_message.Email.t
val map_data : ?on_unparsable_content:[ `Skip | `Raise ] -> Email_message.Email.t -> f:(Email_message.Octet_stream.t -> Email_message.Octet_stream.t) -> Email_message.Email.t
Allow changing the message content to mask the actual data but retain the structure
val to_raw_content : t -> Email_message__.Email_raw_content.t
val to_string_monoid : t -> Email_message.String_monoid.t