Update examples/plaintext.rs
Co-authored-by: Jon Gjengset <jon@thesquareplanet.com>
This commit is contained in:
parent
1fac43882d
commit
c0a783e05a
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue