aboutsummaryrefslogtreecommitdiff
path: root/src/mail
diff options
context:
space:
mode:
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 {