notmuch: include html and whole thread when showing.

This commit is contained in:
Bill Thiede 2021-11-08 20:23:29 -08:00
parent 52cd8c3c86
commit 8de3c4e02a

View File

@ -479,7 +479,13 @@ impl Notmuch {
}
pub fn show(&self, query: &str) -> Result<ThreadSet, NotmuchError> {
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);