notmuch: include html and whole thread when showing.
This commit is contained in:
parent
52cd8c3c86
commit
8de3c4e02a
@ -479,7 +479,13 @@ impl Notmuch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn show(&self, query: &str) -> Result<ThreadSet, NotmuchError> {
|
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
|
// Notmuch returns JSON with invalid unicode. So we lossy convert it to a string here an
|
||||||
// use that for parsing in rust.
|
// use that for parsing in rust.
|
||||||
let s = String::from_utf8_lossy(&slice);
|
let s = String::from_utf8_lossy(&slice);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user