feature-gate doc

This commit is contained in:
Michael Zhang 2021-03-09 03:27:25 -06:00
parent 0162d39deb
commit c6116531b0
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B
3 changed files with 3 additions and 0 deletions

View file

@ -223,6 +223,7 @@ impl ClientAuthenticated {
/// Runs the IDLE command
#[cfg(feature = "rfc2177-idle")]
#[cfg_attr(docsrs, doc(cfg(feature = "rfc2177-idle")))]
pub async fn idle(&mut self) -> Result<ResponseStream> {
let cmd = Command::Idle;
let stream = self.execute(cmd).await?;

View file

@ -29,6 +29,7 @@ pub enum Command {
},
#[cfg(feature = "rfc2177-idle")]
#[cfg_attr(docsrs, doc(cfg(feature = "rfc2177-idle")))]
Idle,
}

View file

@ -144,6 +144,7 @@ async fn imap_main(acct: MailAccountConfig, mail2ui_tx: UnboundedSender<MailEven
let _ = mail2ui_tx.send(MailEvent::FolderList(folder_list));
let message_uids = authed.uid_search().await?;
let message_uids = message_uids.into_iter().take(20).collect::<Vec<_>>();
let message_list = authed.uid_fetch(&message_uids).await?;
let _ = mail2ui_tx.send(MailEvent::MessageList(message_list));