Comment example where we turn on debugging.
This commit is contained in:
parent
bb38142ab3
commit
e8a7c918c0
1 changed files with 6 additions and 0 deletions
|
|
@ -46,7 +46,13 @@ fn main() {
|
||||||
let mut imap = client
|
let mut imap = client
|
||||||
.login(opt.username, opt.password)
|
.login(opt.username, opt.password)
|
||||||
.expect("Could not authenticate");
|
.expect("Could not authenticate");
|
||||||
|
|
||||||
|
// Turn on debug output so we can see the actual traffic coming
|
||||||
|
// from the server and how it is handled in our callback.
|
||||||
|
// This wouldn't be turned on in a production build, but is helpful
|
||||||
|
// in examples and for debugging.
|
||||||
imap.debug = true;
|
imap.debug = true;
|
||||||
|
|
||||||
imap.select(opt.mailbox).expect("Could not select mailbox");
|
imap.select(opt.mailbox).expect("Could not select mailbox");
|
||||||
|
|
||||||
let idle = imap.idle().expect("Could not IDLE");
|
let idle = imap.idle().expect("Could not IDLE");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue