rust-imap/examples
Galileo c0a783e05a
Update examples/plaintext.rs
Co-authored-by: Jon Gjengset <jon@thesquareplanet.com>
2022-10-30 19:24:49 -05: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 Fix tests and examples. 2021-07-17 16:51:35 -04:00
idle.rs Idle builder (#202) 2021-05-26 21:55:42 -04:00
plaintext.rs Update examples/plaintext.rs 2022-10-30 19:24:49 -05:00
README.md Fixed README.md formatting back to original 2022-10-30 12:20:32 -05: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.
  • plaintext - This demonstrates how to make an unencrypted IMAP connection (usually over 143) with a Client using a naked TCP connection.