rust-imap/examples
2024-03-31 10:47:37 +02:00
..
basic.rs Change the client builder so that it abstracts away connecting to TLS or non-TLS connections and what TLS provider is used. 2023-10-05 17:32:58 -04:00
gmail_oauth2.rs Change the client builder so that it abstracts away connecting to TLS or non-TLS connections and what TLS provider is used. 2023-10-05 17:32:58 -04:00
idle.rs Remove dependency on unmaintained structopt 2024-03-31 10:47:37 +02:00
plaintext.rs Merge branch 'main' of github.com:641i130/rust-imap 2022-10-31 18:27:53 -05:00
README.md Fixed README.md formatting back to original 2022-10-30 12:20:32 -05:00
rustls.rs Change the client builder so that it abstracts away connecting to TLS or non-TLS connections and what TLS provider is used. 2023-10-05 17:32:58 -04:00
starttls.rs Change the client builder so that it abstracts away connecting to TLS or non-TLS connections and what TLS provider is used. 2023-10-05 17:32:58 -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.