Browse Source

melib/imap: EXAMINE instead of SELECT in IDLE connection

jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
ce559b05d7
Signed by untrusted user: epilys GPG Key ID: 73627C2F690DF710
  1. 2
      melib/src/backends/imap/watch.rs

2
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));

Loading…
Cancel
Save