This library provides types, i.e., struct
s and enum
s, to support [IMAP4rev1] implementations.
The types were initially extracted from [imap-codec] -- an IMAP parser and serializer -- and may now serve as a common basis for diverse IMAP implementations in Rust.
To ensure correctness, imap-types makes use of types such as AString, Atom, IString, Quoted, and Literal (from the [core] module). It is good to know these types, because IMAP may require different message flows depending on what type was used to encode certain information such as a username or password. When constructing types, imap-types will automatically choose the best encoding.
This crate is dual-licensed under Apache 2.0 and MIT terms.