notmuch: add bulk version of allmail::parse.
This commit is contained in:
@@ -480,7 +480,8 @@ impl Notmuch {
|
||||
|
||||
pub fn show(&self, query: &str) -> Result<ThreadSet, NotmuchError> {
|
||||
let slice = self.run_notmuch(["show", "--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);
|
||||
let mut deserializer = serde_json::Deserializer::from_str(&s);
|
||||
deserializer.disable_recursion_limit();
|
||||
|
||||
Reference in New Issue
Block a user