package email_message

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

Module Simple.AttachmentSource

Sourcemodule Id : sig ... end
Sourcetype t
Sourceval id : t -> Id.t

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

Sourceval headers : t -> Email_message__.Headers.t

The headers surrounding this attachment

Sourceval embedded_email : t -> Email.t option

Some email if this is an attached message/rfc822 content

These are expensive operations

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

filename decoded as per Encoded_word.decode

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

Innovation. Community. Security.