aboutsummaryrefslogtreecommitdiff
path: root/src/imap/command/examined.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-11 11:48:02 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-11 11:48:02 +0100
commitfbf2e9aa9670c991f5384350b2c78ad38dc3baf8 (patch)
tree51555e9c3371622fefd854c89ce887a8814fa0e1 /src/imap/command/examined.rs
parent917c32ae0b6fa3161cebdfeec748b2db0bbc1c70 (diff)
downloadaerogramme-fbf2e9aa9670c991f5384350b2c78ad38dc3baf8.tar.gz
aerogramme-fbf2e9aa9670c991f5384350b2c78ad38dc3baf8.zip
Enable CONDSTORE if SEARCH MODSEQ is queried
Diffstat (limited to 'src/imap/command/examined.rs')
-rw-r--r--src/imap/command/examined.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/imap/command/examined.rs b/src/imap/command/examined.rs
index ef5cecc..bb05250 100644
--- a/src/imap/command/examined.rs
+++ b/src/imap/command/examined.rs
@@ -120,7 +120,10 @@ impl<'a> ExaminedContext<'a> {
criteria: &SearchKey<'a>,
uid: &bool,
) -> Result<(Response<'static>, flow::Transition)> {
- let found = self.mailbox.search(charset, criteria, *uid).await?;
+ let (found, enable_condstore) = self.mailbox.search(charset, criteria, *uid).await?;
+ if enable_condstore {
+ self.client_capabilities.enable_condstore();
+ }
Ok((
Response::build()
.to_req(self.req)