From d4e0e66581ff785e89edd15e2b8d68640f370a0e Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 12 Jul 2022 16:02:13 +0200 Subject: Fix Subscribed --- src/imap/command/authenticated.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/imap/command/authenticated.rs b/src/imap/command/authenticated.rs index bc9fddf..6208290 100644 --- a/src/imap/command/authenticated.rs +++ b/src/imap/command/authenticated.rs @@ -134,14 +134,13 @@ impl<'a> AuthenticatedContext<'a> { .to_string() .try_into() .map_err(|_| anyhow!("invalid mailbox name"))?; - let mut items = vec![]; + let mut items = vec![FlagNameAttribute::Extension( + "Subscribed".try_into().unwrap(), + )]; if !*is_real { items.push(FlagNameAttribute::Noselect); } if is_lsub { - items.push(FlagNameAttribute::Extension( - "\\Subscribed".try_into().unwrap(), - )); ret.push(Data::Lsub { items, delimiter: Some(MAILBOX_HIERARCHY_DELIMITER), -- cgit v1.2.3