diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-03 09:21:46 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-03 09:21:46 +0100 |
commit | 7ebc708acab9c91db41652cfbfe2814a3a27569d (patch) | |
tree | 8f0df3e5d92865fe5650cafd2558b072810e21f3 /src/imap/command/anystate.rs | |
parent | b9a0c1e6eced036eb71e8221a4f236f72832fec2 (diff) | |
download | aerogramme-7ebc708acab9c91db41652cfbfe2814a3a27569d.tar.gz aerogramme-7ebc708acab9c91db41652cfbfe2814a3a27569d.zip |
unselect implemented rfc3691
Diffstat (limited to 'src/imap/command/anystate.rs')
-rw-r--r-- | src/imap/command/anystate.rs | 7 |
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") |