From 8769e5acd44ffd25cc78b2a45e1973ea150b08f7 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sun, 18 Aug 2024 14:18:15 -0700 Subject: [PATCH] server: fix counting issue w/ notmuch (messages vs threads) --- notmuch/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notmuch/src/lib.rs b/notmuch/src/lib.rs index 714c89e..39042f4 100644 --- a/notmuch/src/lib.rs +++ b/notmuch/src/lib.rs @@ -518,7 +518,7 @@ impl Notmuch { } pub fn count(&self, query: &str) -> Result { - let res = self.run_notmuch(["count", query])?; + let res = self.run_notmuch(["count", "--output=threads", query])?; // Strip '\n' from res. let s = std::str::from_utf8(&res[..res.len() - 1])?; Ok(s.parse()?)