aboutsummaryrefslogtreecommitdiff
path: root/src/mail
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-29 17:58:31 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-29 17:58:31 +0200
commita8d0e4a994daca39f9619cddf2847c1a7820c040 (patch)
tree329dc1919fb0c7fc6c6531e9f53afbde7f83a542 /src/mail
parent733c59ed8060f8903d723635ed2e7c13ccca7974 (diff)
downloadaerogramme-a8d0e4a994daca39f9619cddf2847c1a7820c040.tar.gz
aerogramme-a8d0e4a994daca39f9619cddf2847c1a7820c040.zip
Implement IDLE in selected state
Diffstat (limited to 'src/mail')
-rw-r--r--src/mail/mailbox.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mail/mailbox.rs b/src/mail/mailbox.rs
index 0a4df57..6801ab7 100644
--- a/src/mail/mailbox.rs
+++ b/src/mail/mailbox.rs
@@ -36,6 +36,11 @@ impl Mailbox {
Ok(Self { id, mbox })
}
+ /// Sync data with backing store
+ pub async fn sync(&self) -> Result<()> {
+ self.mbox.write().await.uid_index.sync().await
+ }
+
/// Get a clone of the current UID Index of this mailbox
/// (cloning is cheap so don't hesitate to use this)
pub async fn current_uid_index(&self) -> UidIndex {