refactor(imap): move list_folders() to Session

This commit is contained in:
link2xt
2024-02-28 21:40:22 +00:00
parent 08a30031eb
commit d4a505b52e
3 changed files with 12 additions and 15 deletions

View File

@@ -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")?;