From e8a7c918c080b2976d93c026a8cb5a91f4c2cf8f Mon Sep 17 00:00:00 2001 From: Todd Mortimer Date: Mon, 5 Apr 2021 15:33:48 -0400 Subject: [PATCH] Comment example where we turn on debugging. --- examples/idle.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/idle.rs b/examples/idle.rs index a374388..2cb7c40 100644 --- a/examples/idle.rs +++ b/examples/idle.rs @@ -46,7 +46,13 @@ fn main() { let mut imap = client .login(opt.username, opt.password) .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.select(opt.mailbox).expect("Could not select mailbox"); let idle = imap.idle().expect("Could not IDLE");