From 8de3c4e02a94006f106b0c795c836472f5f8b9a8 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Mon, 8 Nov 2021 20:23:29 -0800 Subject: [PATCH] notmuch: include html and whole thread when showing. --- notmuch/src/lib.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/notmuch/src/lib.rs b/notmuch/src/lib.rs index 051877e..5dea617 100644 --- a/notmuch/src/lib.rs +++ b/notmuch/src/lib.rs @@ -479,7 +479,13 @@ impl Notmuch { } pub fn show(&self, query: &str) -> Result { - let slice = self.run_notmuch(["show", "--format=json", query])?; + let slice = self.run_notmuch([ + "show", + "--include-html=true", + "--entire-thread=true", + "--format=json", + query, + ])?; // Notmuch returns JSON with invalid unicode. So we lossy convert it to a string here an // use that for parsing in rust. let s = String::from_utf8_lossy(&slice);