package mrmime

  1. Overview
  2. Docs
type word = Rfc822.word
type local = Rfc822.local
module Domain : sig ... end

An RFC 822 domain can be constructed in two ways. This construction differs from Address.domain. We can construct a common domain via:

Pretty-printers.

val pp_word : word Fmt.t
val pp_domain : domain Fmt.t
val pp_local : local Fmt.t
val pp : t Fmt.t

Equals.

val equal_word : word -> word -> bool
val equal_local : local -> local -> bool
val equal_domain : domain -> domain -> bool
val equal : t -> t -> bool

Encoder of message ID.

module Encoder : sig ... end
val to_unstructured : field_name:Field_name.t -> t -> Unstructured.t

to_unstructured ~field_name t casts t to an Unstructured.t value - which is more general. Returned value respects limit of 1000 characters per lines and to_unstructured puts FWS token (\r\n plus, at least, one space) to fit under this limit.

OCaml

Innovation. Community. Security.