Fix Subscribed

This commit is contained in:
Alex 2022-07-12 16:02:13 +02:00
parent 9b7d999fd5
commit d4e0e66581
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -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),