rust-imap/examples
mordak 7204697dd9
Add ClientBuilder helper to make setting up TLS connections easy. (#197)
Also replaces connect() and connect_starttls() with ClientBuilder.
2021-05-10 22:39:46 -04:00
..
basic.rs Add ClientBuilder helper to make setting up TLS connections easy. (#197) 2021-05-10 22:39:46 -04:00
gmail_oauth2.rs Add ClientBuilder helper to make setting up TLS connections easy. (#197) 2021-05-10 22:39:46 -04:00
idle.rs Add ClientBuilder helper to make setting up TLS connections easy. (#197) 2021-05-10 22:39:46 -04:00
README.md Add ClientBuilder helper to make setting up TLS connections easy. (#197) 2021-05-10 22:39:46 -04:00
rustls.rs Add ClientBuilder helper to make setting up TLS connections easy. (#197) 2021-05-10 22:39:46 -04:00
starttls.rs Add ClientBuilder helper to make setting up TLS connections easy. (#197) 2021-05-10 22:39:46 -04:00
timeout.rs Add ClientBuilder helper to make setting up TLS connections easy. (#197) 2021-05-10 22:39:46 -04:00

Examples

This directory contains examples of working with the IMAP client.

Examples:

  • basic - This is a very basic example of using the client.
  • gmail_oauth2 - This is an example using oauth2 for logging into gmail as a secure appplication.
  • idle - This is an example showing how to use IDLE to monitor a mailbox.
  • rustls - This demonstrates how to use Rustls instead of Openssl for secure connections (helpful for cross compilation).
  • starttls - This is an example showing how to use STARTTLS after connecting over plaintext.
  • timeout - This demonstrates how to use timeouts while connecting to an IMAP server by using a custom TCP/TLS stream initialization and creating a Client directly instead of using the ClientBuilder.