imap
This crate lets you connect to and interact with servers that implement the IMAP protocol (RFC 3501). After authenticating with the server, IMAP lets you list, fetch, and search for e-mails, as well as monitor mailboxes for changes.
To connect, use the imap::connect
function. This gives you an unauthenticated imap::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.
Below is a basic client example. See the examples/
directory for more.
extern crate imap;
extern crate native_tls;
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Contribution
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.