diff --git a/melib/src/backends/jmap/protocol.rs b/melib/src/backends/jmap/protocol.rs index f15bc2bf..5b2b1295 100644 --- a/melib/src/backends/jmap/protocol.rs +++ b/melib/src/backends/jmap/protocol.rs @@ -109,7 +109,7 @@ pub async fn get_mailboxes(conn: &JmapConnection) -> Result = list .into_iter() .map(|r| { let MailboxObject { @@ -157,7 +157,13 @@ pub async fn get_mailboxes(conn: &JmapConnection) -> Result>() { + if let Some(parent_hash) = ret[&key].parent_hash.clone() { + ret.entry(parent_hash).and_modify(|e| e.children.push(key)); + } + } + Ok(ret) } pub async fn get_message_list(