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/Headers/Normalize/index.html

Module Headers.NormalizeSource

Normalize specifies how to handle header values. It is used in two contexts:

1) Transport (Normalize.encode): Specify how to turn a string into a header value. `Whitespace will add the necessary for transport.

2) Processing (Normalize.decode): Specify how to turn a header value into a string. `Whitespace will remove all leading and trailing whitespace on each line in order to cleanly process the value.

Sourcetype encode = [
  1. | `None
    (*

    Leave whitespace unchanged

    *)
  2. | `Whitespace
    (*

    Cleanup leading and trailing whitespace on each line

    *)
]
Sourceval sexp_of_encode : encode -> Sexplib0.Sexp.t
Sourcetype decode = [
  1. | encode
  2. | `Whitespace_and_encoded_words
]
Sourceval sexp_of_decode : decode -> Sexplib0.Sexp.t
Sourceval default : [> `Whitespace ]
OCaml

Innovation. Community. Security.