From ce559b05d7d775b43311aa8affe8c5f9a56aa5d2 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Thu, 24 Sep 2020 12:15:00 +0300 Subject: [PATCH] melib/imap: EXAMINE instead of SELECT in IDLE connection --- melib/src/backends/imap/watch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/melib/src/backends/imap/watch.rs b/melib/src/backends/imap/watch.rs index 28a65f6de..bbc23810e 100644 --- a/melib/src/backends/imap/watch.rs +++ b/melib/src/backends/imap/watch.rs @@ -76,7 +76,7 @@ pub async fn idle(kit: ImapWatchKit) -> Result<()> { let mailbox_hash = mailbox.hash(); let mut response = Vec::with_capacity(8 * 1024); let select_response = conn - .select_mailbox(mailbox_hash, &mut response, true) + .examine_mailbox(mailbox_hash, &mut response, true) .await? .unwrap(); debug!("select response {}", String::from_utf8_lossy(&response));