diff options
author | Alex Auvolat <alex@adnab.me> | 2022-07-12 16:02:13 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-07-12 16:02:13 +0200 |
commit | d4e0e66581ff785e89edd15e2b8d68640f370a0e (patch) | |
tree | 728a3499dc3d5adffe018d0fa9e36409f70b9f49 | |
parent | 9b7d999fd52dc3410b97ca831238b084650be1b3 (diff) | |
download | aerogramme-d4e0e66581ff785e89edd15e2b8d68640f370a0e.tar.gz aerogramme-d4e0e66581ff785e89edd15e2b8d68640f370a0e.zip |
Fix Subscribed
-rw-r--r-- | src/imap/command/authenticated.rs | 7 |
1 files 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), |