mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
refactor(imap): move list_folders() to Session
This commit is contained in:
@@ -1014,7 +1014,8 @@ impl Imap {
|
||||
pub(crate) async fn resync_folders(&mut self, context: &Context) -> Result<()> {
|
||||
self.prepare(context).await?;
|
||||
|
||||
let all_folders = self
|
||||
let session = self.session.as_mut().context("No IMAP session")?;
|
||||
let all_folders = session
|
||||
.list_folders()
|
||||
.await
|
||||
.context("listing folders for resync")?;
|
||||
|
||||
Reference in New Issue
Block a user