aboutsummaryrefslogtreecommitdiffstats
path: root/tests/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/main.rs')
-rw-r--r--tests/main.rs62
1 files changed, 0 insertions, 62 deletions
diff --git a/tests/main.rs b/tests/main.rs
deleted file mode 100644
index 17db2bc..0000000
--- a/tests/main.rs
+++ /dev/null
@@ -1,62 +0,0 @@
-extern crate dirs;
-extern crate tempfile;
-extern crate notmuch;
-extern crate gethostname;
-extern crate maildir;
-extern crate lettre;
-extern crate lettre_email;
-
-use std::sync::Arc;
-
-use notmuch::{Query, QueryExt};
-
-mod fixtures;
-use fixtures::{MailBox, NotmuchCommand};
-
-
-
-
-// fn main() {
-// let mut mail_path = dirs::home_dir().unwrap();
-// mail_path.push(".mail");
-
-// let md = MailBox::new();
-// let nmcmd = NotMuchCommand::new(md.path());
-
-// match notmuch::Database::open(
-// &mail_path.to_str().unwrap().to_string(),
-// notmuch::DatabaseMode::ReadOnly,
-// ) {
-// Ok(db) => {
-// #[cfg(feature = "v0_21")]
-// {
-// let rev = db.revision();
-// println!("db revision: {:?}", rev);
-// }
-// let query = {
-// let dbr = Arc::new(db);
-
-// notmuch::Query::create(dbr.clone(), &"".to_string()).unwrap()
-// };
-
-// // let mut threads = query.search_threads().unwrap();
-
-// // let mut threads = db.create_query(&"".to_string()).unwrap().search_threads().unwrap();
-
-// let mut threads = Arc::new(<Query as QueryExt>::search_threads(query).unwrap());
-
-// for thread in Arc::get_mut(&mut threads).unwrap()
-// {
-// println!("thread {:?} {:?}", thread.subject(), thread.authors());
-// }
-// }
-// Err(err) => {
-// println!("Got error while trying to open db: {:?}", err);
-// }
-// }
-// }
-
-
-
-
-