You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This crate lets you connect to and interact with servers that implement the IMAP protocol (RFC
3501 and various extensions). After authenticating with
the server, IMAP lets you list, fetch, and search for e-mails, as well as monitor mailboxes for
changes. It supports at least the latest three stable Rust releases (possibly even older ones;
check the CI results).
To connect, use the [connect] function. This gives you an unauthenticated [Client]. You can
then use [Client::login] or [Client::authenticate] to perform username/password or
challenge/response authentication respectively. This in turn gives you an authenticated
[Session], which lets you access the mailboxes at the server.
The documentation within this crate borrows heavily from the various RFCs, but should not be
considered a complete reference. If anything is unclear, follow the links to the RFCs embedded
in the documentation for the various types and methods and read the raw text there!
See the examples/ directory for examples.
Running the test suite
To run the integration tests, you need to have GreenMail
running. The
easiest way to do that is with Docker:
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall
be dual licensed as above, without any additional terms or conditions.