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

Module Mrmime.MailSource

Sourcetype 'a elt = {
  1. header : Header.t;
  2. body : 'a;
}
Sourcetype 'a t =
  1. | Leaf of 'a elt
  2. | Multipart of 'a t option list elt
  3. | Message of 'a t elt
Sourceval heavy_octet : string option -> Header.t -> string Angstrom.t

Heavy parser of a body - it will stores bodies into string.

Sourceval light_octet : emitter:(string option -> unit) -> string option -> Header.t -> unit Angstrom.t

Light parser of body - it sends contents to given emitter.

Sourceval mail : (Header.t * string t) Angstrom.t

Angstrom parser of an entire RFC 5322 mail (including header).

Sourcetype 'id emitters = Header.t -> (string option -> unit) * 'id
Sourceval stream : emitters:(Header.t -> (string option -> unit) * 'id) -> (Header.t * 'id t) Angstrom.t

stream ~emitters is an Angstrom parser of an entire RFC 5322 mail which will use given emitters by emitters to store bodies.