package mrmime

  1. Overview
  2. Docs
Mr. MIME

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mrmime-v0.3.2.tbz
sha256=0fe37cf06ef25a0a0fef7e485b836188824528d1425743cc5c479bc281262b31
sha512=f15bf2cee0998c162886a512a680a415529db39dbdea241c910c1fae7cad5c1bb94afe13ee247ac52149349f08dc922d4d4f37920fe54a0a0e6d0ab40ee2170e

doc/mrmime/Mrmime/Field_name/index.html

Module Mrmime.Field_nameSource

Sourcetype t = private string

Type of field name.

Sourceval compare : t -> t -> int

Comparison function on t.

Sourceval equal : t -> t -> bool

Equal function on t.

Sourceval capitalize : t -> t

capitalize t capitalizes t - any letter in front of '-' will be a capital letter.

Sourceval canonicalize : t -> t

canonicalize t apply String.lowercase_ascii on t.

Sourceval pp : t Fmt.t

Pretty-printer of t.

Sourceval of_string : string -> (t, [ `Msg of string ]) result

of_string s tries to return a field-name. s must respect standards. Otherwise, we return an Error.

Sourceval of_string_exn : string -> t

Same as of_string but raises an Invalid_argument instead of returning Error.

Sourceval v : string -> t

Alias of of_string_exn.

Sourceval prefixed_by : string -> t -> bool

of_prefixed_by prefix t returns true if t is prefixed by s:

  prefixed_by "Resent" resent_date ;;
  - : bool = true

Decoder of field name.

Sourcemodule Decoder : sig ... end

Encoder of field name.

Sourcemodule Encoder : sig ... end

Helpers.

RFC 5322 Field names.

Sourceval date : t
Sourceval from : t
Sourceval sender : t
Sourceval reply_to : t
Sourceval cc : t
Sourceval bcc : t
Sourceval subject : t
Sourceval message_id : t
Sourceval in_reply_to : t
Sourceval references : t
Sourceval comments : t
Sourceval keywords : t
Sourceval received : t
Sourceval return_path : t

RFC 2045 Field names.

Sourceval content_type : t
Sourceval content_encoding : t
Sourceval mime_version : t
Sourceval content_id : t
Sourceval content_description : t

Resent Field names.

Sourceval resent_date : t
Sourceval resent_from : t
Sourceval resent_sender : t
Sourceval resent_to : t
Sourceval resent_cc : t
Sourceval resent_bcc : t
Sourceval resent_message_id : t
Sourceval resent_reply_to : t
Sourcemodule Map : Map.S with type key = t