server: basic graphql thread show, no body support yet.

This commit is contained in:
2023-11-26 13:13:04 -08:00
parent 0737f5aac5
commit 447a4a3387
4 changed files with 161 additions and 2 deletions

View File

@@ -561,7 +561,10 @@ impl Notmuch {
Ok(BufReader::new(child.stdout.take().unwrap()).lines())
}
// TODO(wathiede): implement tags() based on "notmuch search --output=tags '*'"
pub fn files(&self, query: &str) -> Result<Lines<BufReader<ChildStdout>>, NotmuchError> {
let mut child = self.run_notmuch_pipe(["search", "--output=files", query])?;
Ok(BufReader::new(child.stdout.take().unwrap()).lines())
}
fn run_notmuch<I, S>(&self, args: I) -> Result<Vec<u8>, NotmuchError>
where