aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-10 13:59:43 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-10 13:59:43 +0100
commit20193aa023b3f6a6d24d8127f1d8dcb81a43aa3b (patch)
tree60d8b41a0904196a236e075b0cbff78687222587
parent51510c97f7b76a73a2032eb089552cf9a13e9274 (diff)
downloadaerogramme-20193aa023b3f6a6d24d8127f1d8dcb81a43aa3b.tar.gz
aerogramme-20193aa023b3f6a6d24d8127f1d8dcb81a43aa3b.zip
Return highestmodseq in select+examine
-rw-r--r--src/imap/mailbox_view.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imap/mailbox_view.rs b/src/imap/mailbox_view.rs
index 90cfc70..a3d56f0 100644
--- a/src/imap/mailbox_view.rs
+++ b/src/imap/mailbox_view.rs
@@ -399,7 +399,7 @@ impl MailboxView {
pub(crate) fn highestmodseq_status(&self) -> Result<Body<'static>> {
Ok(Body::Status(Status::ok(
None,
- Some(Code::Other(CodeOther::unvalidated(format!("HIGHESTMODSEQ {}", 0).into_bytes()))),
+ Some(Code::Other(CodeOther::unvalidated(format!("HIGHESTMODSEQ {}", self.internal.snapshot.highestmodseq).into_bytes()))),
"Highest",
)?))
}