package email_message

  1. Overview
  2. Docs
E-mail message parser

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=3aa5c85da8530c277cf9e72e18861b235b3b872f08c87f118c04478433320ebb

doc/email_message.kernel/Email_message_kernel/Octet_stream/Encoding/index.html

Module Octet_stream.EncodingSource

RFC 2045 MIME-encoded Bigstrings.

Sourcetype known = [
  1. | `Base64
  2. | `Bit7
  3. | `Bit8
  4. | `Binary
  5. | `Quoted_printable
]

Text or binary are the type of the plaintext. For Base64, if the mode is text, '\n' is turned into '\r\n' when encoding, and vice versa.

Sourceval sexp_of_known : known -> Sexplib0.Sexp.t
Sourceval compare_known : known -> known -> int
Sourcetype t = [
  1. | known
  2. | `Unknown of string
]
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval compare : t -> t -> int
include Ppx_hash_lib.Hashable.S with type t := t
Sourceval hash_fold_t : Base.Hash.state -> t -> Base.Hash.state
Sourceval default : known
Sourceval default' : t
Sourceval of_headers_or_default : ?ignore_base64_for_multipart:bool -> Headers.t -> t

Determine an encoding based on email headers. ignore_base64_for_multipart is useful because some clients can't read RFCs and incorrectly indicate a transfer encoding of base64 for multipart messages.

include Core.Stringable.S with type t := t
Sourceval of_string : string -> t
Sourceval to_string : t -> string
OCaml

Innovation. Community. Security.