aboutsummaryrefslogtreecommitdiff
path: root/src/imap/capability.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/imap/capability.rs')
-rw-r--r--src/imap/capability.rs12
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 {