package email_message

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

For parsing attachments. Use create ~attachments to add attachments. Convenience functions for email parts that have "Content-Disposition: attachment"

module Id : sig ... end
type t
val id : t -> Id.t

In a given email, each attachment has a unique Id.t that is determined by the email structure.

The headers surrounding this attachment

val embedded_email : t -> Email.t option

Some email if this is an attached message/rfc822 content

These are expensive operations

val md5 : t -> string Core.Or_error.t
val sha256 : t -> string Core.Or_error.t
val filename : t -> attachment_name
val decoded_filename : t -> attachment_name

filename decoded as per Encoded_word.decode

val to_file : t -> string -> unit Async.Deferred.Or_error.t
OCaml

Innovation. Community. Security.