diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-09 17:40:23 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-09 17:40:23 +0100 |
commit | 6e798b90f590e21bb68535f0431fc547e5e2390c (patch) | |
tree | 6c1f76c49d712836db3bd2772d34ac473ecabe12 /src/imap/capability.rs | |
parent | 5dfa02e381154c03adee33262e247797d9a2f8ff (diff) | |
download | aerogramme-6e798b90f590e21bb68535f0431fc547e5e2390c.tar.gz aerogramme-6e798b90f590e21bb68535f0431fc547e5e2390c.zip |
prepare condstore
Diffstat (limited to 'src/imap/capability.rs')
-rw-r--r-- | src/imap/capability.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/imap/capability.rs b/src/imap/capability.rs index 21b95cb..d88673c 100644 --- a/src/imap/capability.rs +++ b/src/imap/capability.rs @@ -48,15 +48,21 @@ impl ServerCapability { } } -enum ClientStatus { +pub enum ClientStatus { NotSupportedByServer, Disabled, Enabled, } +impl ClientStatus { + pub fn is_enabled(&self) -> bool { + matches!(self, Self::Enabled) + } +} + pub struct ClientCapability { - condstore: ClientStatus, - utf8kind: Option<Utf8Kind>, + pub condstore: ClientStatus, + pub utf8kind: Option<Utf8Kind>, } impl ClientCapability { |