aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs12
1 files changed, 1 insertions, 11 deletions
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));