ocaml-imap is a non-blocking codec to encode and decode the full IMAP4rev1 protocol, together with some extensions. It can process input without blocking on IO and is completely independent of any particular buffering and/or IO strategy (concurrent, like Lwt or Async, sequential, etc.).
ocaml-imap is made of a single module Imap and distributed under the MIT license. Its only dependencies are Uutf, Base64, and Uint.
Published: 24 Jun 2015
ocaml-imap -- a client IMAP4rev1 library for OCaml
ocaml-imap is a non-blocking IMAP codec to decode and encode the IMAP4rev1 email protocol.
Home page: https://github.com/nojb/ocaml-imap
Contact: Nicolas Ojeda Bar
ocaml-imap can be installed with
opam install imap
If you don't use
opam consult the
opam file for build instructions and a complete specification of the dependencies.
The documentation and API reference is automatically generated by
imap.mli. It can be consulted online. It can also be generated with:
and accessed at
Sample programs are located in the
test directory of the distribution. They can be built with:
The resulting binaries are in the root directory:
imap_shell.nativeis a small ineractive shell that can be used to interact with IMAP servers in order to test the library and experiment with the protocol. Invoke with
--helpfor more information. Depends on Cmdliner, Ssl and Lwt.