aboutsummaryrefslogtreecommitdiffstats
path: root/src/db.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.rs')
-rw-r--r--src/db.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/db.rs b/src/db.rs
new file mode 100644
index 0000000..b324e90
--- /dev/null
+++ b/src/db.rs
@@ -0,0 +1,3 @@
+pub fn open(mode: notmuch::DatabaseMode) -> Result<notmuch::Database, notmuch::Error> {
+ notmuch::Database::open(&"/home/gustav/.mail", mode)
+}