feat: add support for IMAP METADATA

This commit is contained in:
link2xt
2024-01-25 00:17:37 +00:00
parent 06f1fe18d6
commit cb3f03fd39
8 changed files with 86 additions and 3 deletions

View File

@@ -460,6 +460,10 @@ async fn inbox_loop(
warn!(ctx, "Failed to download messages: {:#}", err);
}
if let Err(err) = connection.fetch_metadata(&ctx).await {
warn!(ctx, "Failed to fetch metadata: {err:#}.");
}
fetch_idle(&ctx, &mut connection, FolderMeaning::Inbox).await;
}
};