Implement newsreader counting

This commit is contained in:
2024-07-21 15:13:09 -07:00
parent abaaddae3a
commit 9746c9912b
5 changed files with 67 additions and 18 deletions

View File

@@ -41,6 +41,10 @@ pub fn threadset_to_messages(thread_set: notmuch::ThreadSet) -> Result<Vec<Messa
Ok(Vec::new())
}
pub async fn count(nm: &Notmuch, query: &str) -> Result<usize, ServerError> {
Ok(nm.count(query)?)
}
pub async fn search(
nm: &Notmuch,
after: Option<String>,