Update examples/plaintext.rs

Co-authored-by: Jon Gjengset <jon@thesquareplanet.com>
This commit is contained in:
Galileo 2022-10-30 19:24:49 -05:00 committed by GitHub
parent 1fac43882d
commit c0a783e05a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,8 +23,7 @@ fn plaintext() -> imap::error::Result<Option<String>> {
eprintln!("\nUNENCRYPTED connection made!!!!\n");
eprintln!("This is highly not recommended.\n");
// to do anything useful with the e-mails, we need to log in
// Makes an unencrypted login message to the IMAP server. This is risky business!
// keep in mind that this is over plain TCP, so may leak all your secrets!
let mut imap_session = client.login("user", "pass").unwrap();
// we want to fetch the first email in the INBOX mailbox