diff options
author | Alex Auvolat <alex@adnab.me> | 2022-07-13 14:21:14 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-07-13 14:21:14 +0200 |
commit | cd59be3a007822637a8b48efe988fb052d58a756 (patch) | |
tree | 4f57f0720ed62e9c8704a6ca38a6a4c48b660f6d /src/imap/command/examined.rs | |
parent | 9fa2e958b3b37538b80b7f26107b7df2238f335b (diff) | |
download | aerogramme-cd59be3a007822637a8b48efe988fb052d58a756.tar.gz aerogramme-cd59be3a007822637a8b48efe988fb052d58a756.zip |
Implement opportunistic sync based on watch value, and use it
Diffstat (limited to 'src/imap/command/examined.rs')
-rw-r--r-- | src/imap/command/examined.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/imap/command/examined.rs b/src/imap/command/examined.rs index 94e8e88..8da68f8 100644 --- a/src/imap/command/examined.rs +++ b/src/imap/command/examined.rs @@ -87,7 +87,9 @@ impl<'a> ExaminedContext<'a> { } pub async fn noop(self) -> Result<(Response, flow::Transition)> { - let updates = self.mailbox.sync_update().await?; + self.mailbox.mailbox.force_sync().await?; + + let updates = self.mailbox.update().await?; Ok(( Response::ok("NOOP completed.")?.with_body(updates), flow::Transition::None, |