Compare commits
No commits in common. "0f1a60a3482631879c84c96318105f5fd5d9ca93" and "568d83f029e46d61e4f0d4df687db9712abbedcc" have entirely different histories.
0f1a60a348
...
568d83f029
@ -1,10 +1,11 @@
|
|||||||
use std::{
|
use std::{
|
||||||
error::Error,
|
error::Error,
|
||||||
io::{stdout, Write},
|
io::{stdout, Write},
|
||||||
time::Instant,
|
time::{Duration, Instant},
|
||||||
};
|
};
|
||||||
|
|
||||||
use notmuch::Notmuch;
|
use itertools::Itertools;
|
||||||
|
use notmuch::{Notmuch, NotmuchError, SearchSummary, ThreadSet};
|
||||||
use rayon::iter::{ParallelBridge, ParallelIterator};
|
use rayon::iter::{ParallelBridge, ParallelIterator};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -26,7 +27,7 @@ fn parse_one() -> Result<(), Box<dyn Error>> {
|
|||||||
.enumerate()
|
.enumerate()
|
||||||
.par_bridge()
|
.par_bridge()
|
||||||
.for_each(|(i, msg)| {
|
.for_each(|(i, msg)| {
|
||||||
let _ts = nm
|
let ts = nm
|
||||||
.show(&msg)
|
.show(&msg)
|
||||||
.expect(&format!("failed to show msg: {}", msg));
|
.expect(&format!("failed to show msg: {}", msg));
|
||||||
//println!("{:?}", ts);
|
//println!("{:?}", ts);
|
||||||
@ -78,7 +79,7 @@ fn parse_bulk() -> Result<(), Box<dyn Error>> {
|
|||||||
//.par_bridge()
|
//.par_bridge()
|
||||||
.for_each(|(i, msgs)| {
|
.for_each(|(i, msgs)| {
|
||||||
let query = msgs.join(" OR ");
|
let query = msgs.join(" OR ");
|
||||||
let _ts = nm
|
let ts = nm
|
||||||
.show(&query)
|
.show(&query)
|
||||||
.expect(&format!("failed to show msgs: {}", query));
|
.expect(&format!("failed to show msgs: {}", query));
|
||||||
//println!("{:?}", ts);
|
//println!("{:?}", ts);
|
||||||
|
|||||||
@ -350,7 +350,7 @@ impl QueryRoot {
|
|||||||
Body::PlainText(PlainText { text, content_tree }) => Body::Html(Html {
|
Body::PlainText(PlainText { text, content_tree }) => Body::Html(Html {
|
||||||
html: format!(
|
html: format!(
|
||||||
r#"<p class="view-part-text-plain">{}</p>"#,
|
r#"<p class="view-part-text-plain">{}</p>"#,
|
||||||
sanitize_html(&linkify_html(&text))?
|
linkify_html(&text)
|
||||||
),
|
),
|
||||||
content_tree: if debug_content_tree {
|
content_tree: if debug_content_tree {
|
||||||
render_content_type_tree(&m)
|
render_content_type_tree(&m)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user