feature-gate doc
This commit is contained in:
parent
0162d39deb
commit
c6116531b0
3 changed files with 3 additions and 0 deletions
|
@ -223,6 +223,7 @@ impl ClientAuthenticated {
|
||||||
|
|
||||||
/// Runs the IDLE command
|
/// Runs the IDLE command
|
||||||
#[cfg(feature = "rfc2177-idle")]
|
#[cfg(feature = "rfc2177-idle")]
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "rfc2177-idle")))]
|
||||||
pub async fn idle(&mut self) -> Result<ResponseStream> {
|
pub async fn idle(&mut self) -> Result<ResponseStream> {
|
||||||
let cmd = Command::Idle;
|
let cmd = Command::Idle;
|
||||||
let stream = self.execute(cmd).await?;
|
let stream = self.execute(cmd).await?;
|
||||||
|
|
|
@ -29,6 +29,7 @@ pub enum Command {
|
||||||
},
|
},
|
||||||
|
|
||||||
#[cfg(feature = "rfc2177-idle")]
|
#[cfg(feature = "rfc2177-idle")]
|
||||||
|
#[cfg_attr(docsrs, doc(cfg(feature = "rfc2177-idle")))]
|
||||||
Idle,
|
Idle,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -144,6 +144,7 @@ async fn imap_main(acct: MailAccountConfig, mail2ui_tx: UnboundedSender<MailEven
|
||||||
let _ = mail2ui_tx.send(MailEvent::FolderList(folder_list));
|
let _ = mail2ui_tx.send(MailEvent::FolderList(folder_list));
|
||||||
|
|
||||||
let message_uids = authed.uid_search().await?;
|
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 message_list = authed.uid_fetch(&message_uids).await?;
|
||||||
let _ = mail2ui_tx.send(MailEvent::MessageList(message_list));
|
let _ = mail2ui_tx.send(MailEvent::MessageList(message_list));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue