diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-10 17:07:07 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-10 17:07:07 +0100 |
commit | 9cec7803d28617f1bfd1ac1621c2eda9582201d4 (patch) | |
tree | 46734d3ae0029f4c725df53d383cf918ccb82a04 /src/imap/capability.rs | |
parent | 96332c9bfe6a9f01e3fdb0b2b565ad669fb526b1 (diff) | |
download | aerogramme-9cec7803d28617f1bfd1ac1621c2eda9582201d4.tar.gz aerogramme-9cec7803d28617f1bfd1ac1621c2eda9582201d4.zip |
Implement HIGHESTMODSEQ for STATUS
Diffstat (limited to 'src/imap/capability.rs')
-rw-r--r-- | src/imap/capability.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/imap/capability.rs b/src/imap/capability.rs index be1d4b6..37f14df 100644 --- a/src/imap/capability.rs +++ b/src/imap/capability.rs @@ -11,9 +11,11 @@ fn capability_condstore() -> Capability<'static> { Capability::try_from("CONDSTORE").unwrap() } +/* fn capability_qresync() -> Capability<'static> { Capability::try_from("QRESYNC").unwrap() } +*/ #[derive(Debug, Clone)] pub struct ServerCapability(HashSet<Capability<'static>>); @@ -84,10 +86,14 @@ impl ClientCapability { } } + pub fn enable_condstore(&mut self) { + self.condstore = self.condstore.enable(); + } + pub fn select_enable(&mut self, atoms: &[Atom]) { for at in atoms.iter() { if at.as_ref().to_uppercase() == "CONDSTORE" { - self.condstore = self.condstore.enable(); + self.enable_condstore(); } } } |