From 4a33cd02bef5fba633d99cf0e8f5ca55a25e8384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Wed, 28 Apr 2021 23:49:03 +0200 Subject: try look for sent messages --- src/main.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 3f71050..58c084e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,17 +15,7 @@ fn main() { // hide the cursor let mut screen = termion::cursor::HideCursor::from(screen); - let mut threads = { - // open database - let db = crate::db::open(notmuch::DatabaseMode::ReadOnly).unwrap(); - - // get threads - let query = db.create_query("tag:inbox").unwrap(); - let threads = query.search_threads().unwrap(); - - Threads::from_query(Some(String::from("tag:inbox")), threads) - }; - + let threads = Threads::from_query(String::from("tag:inbox")); threads.init(&mut screen); let client = Client::new(State::Threads(threads)); -- cgit v1.2.1