aboutsummaryrefslogtreecommitdiff
path: root/src/imap/command/anystate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/imap/command/anystate.rs')
-rw-r--r--src/imap/command/anystate.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/imap/command/anystate.rs b/src/imap/command/anystate.rs
index 42fe645..f326852 100644
--- a/src/imap/command/anystate.rs
+++ b/src/imap/command/anystate.rs
@@ -6,8 +6,11 @@ use crate::imap::flow;
use crate::imap::response::Response;
pub(crate) fn capability(tag: Tag<'static>) -> Result<(Response<'static>, flow::Transition)> {
- let capabilities: NonEmptyVec<Capability> =
- (vec![Capability::Imap4Rev1, Capability::Idle]).try_into()?;
+ let capabilities: NonEmptyVec<Capability> = (vec![
+ Capability::Imap4Rev1,
+ Capability::try_from("UNSELECT").unwrap(),
+ ])
+ .try_into()?;
let res = Response::build()
.tag(tag)
.message("Server capabilities")