From 04bbb957efabdbaf1f6dc5b6343fedac8a9f003f Mon Sep 17 00:00:00 2001 From: Matt McCoy Date: Thu, 14 Jul 2016 16:32:44 -0400 Subject: [PATCH] Add comment to reference secure gmail connection --- examples/basic.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/basic.rs b/examples/basic.rs index 97474b1..54e3fec 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -6,6 +6,7 @@ use imap::client::Client; // To connect to the gmail IMAP server with this you will need to allow unsecure apps access. // See: https://support.google.com/accounts/answer/6010255?hl=en +// Look at the gmail_oauth2.rs example on how to connect to a gmail server securely. fn main() { let mut imap_socket = Client::secure_connect(("imap.gmail.com", 993), SslContext::new(SslMethod::Sslv23).unwrap()).unwrap();