blob: 1b30c67740afb5027450b7aadcdbe2d059cc8452 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
fn main() {
let db = notmuch::Database::open(&"/home/gustav/.mail", notmuch::DatabaseMode::ReadOnly).unwrap();
let query = db.create_query("tag:inbox and tag:unread").unwrap();
let threads = query.search_threads().unwrap();
for thread in threads {
println!("thread {:?}, {:?}", thread.subject(), thread.authors());
}
}
|