aboutsummaryrefslogtreecommitdiff
path: root/src/imap/mailbox_view.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-10 18:38:21 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-10 18:38:21 +0100
commitf4cbf665496640f4ac7cf4ac63ab2beced674978 (patch)
tree1bf25a04be2f067271cad9ad48fc98633cd34dfb /src/imap/mailbox_view.rs
parentf5b73182f25dfdcdc34f7b3c6664c5112ce93c1c (diff)
downloadaerogramme-f4cbf665496640f4ac7cf4ac63ab2beced674978.tar.gz
aerogramme-f4cbf665496640f4ac7cf4ac63ab2beced674978.zip
Fecth MODSEQ now enables the CONDSTORE capability
Diffstat (limited to 'src/imap/mailbox_view.rs')
-rw-r--r--src/imap/mailbox_view.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imap/mailbox_view.rs b/src/imap/mailbox_view.rs
index b3848b2..61beed5 100644
--- a/src/imap/mailbox_view.rs
+++ b/src/imap/mailbox_view.rs
@@ -259,7 +259,7 @@ impl MailboxView {
sequence_set: &SequenceSet,
attributes: &'b MacroOrMessageDataItemNames<'static>,
is_uid_fetch: &bool,
- ) -> Result<Vec<Body<'static>>> {
+ ) -> Result<(Vec<Body<'static>>, bool)> {
// [1/6] Pre-compute data
// a. what are the uuids of the emails we want?
// b. do we need to fetch the full body?
@@ -316,7 +316,7 @@ impl MailboxView {
.collect::<Result<_, _>>()?;
// [6/6] Build the final result that will be sent to the client.
- Ok(imap_ret)
+ Ok((imap_ret, ap.is_enabling_condstore()))
}
/// A naive search implementation...