mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 12:56:30 +03:00
Revert "imap: simplify select_folder() interface"
This reverts commit b614de2f80.
This commit is contained in:
committed by
holger krekel
parent
0594034ee6
commit
3ee81cbee0
@@ -59,7 +59,7 @@ impl Imap {
|
||||
task::block_on(async move { self.config.read().await.can_idle })
|
||||
}
|
||||
|
||||
pub fn idle(&self, context: &Context, watch_folder: String) -> Result<()> {
|
||||
pub fn idle(&self, context: &Context, watch_folder: Option<String>) -> Result<()> {
|
||||
task::block_on(async move {
|
||||
if !self.can_idle() {
|
||||
return Err(Error::IdleAbilityMissing);
|
||||
@@ -67,7 +67,7 @@ impl Imap {
|
||||
|
||||
self.setup_handle_if_needed(context).await?;
|
||||
|
||||
self.select_folder(context, watch_folder).await?;
|
||||
self.select_folder(context, watch_folder.clone()).await?;
|
||||
|
||||
let session = self.session.lock().await.take();
|
||||
let timeout = Duration::from_secs(23 * 60);
|
||||
|
||||
Reference in New Issue
Block a user