aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorSebastian Spaeth <sebastian@sspaeth.de>2010-03-15 15:47:15 +0100
committerSebastian Spaeth <sebastian@sspaeth.de>2010-03-15 15:47:15 +0100
commitb4fdf0ae30e0847a759c01524898d0b9d803c43b (patch)
treeb586e9dbca8d26702fa2d6b614ea16e22e408d77 /README
parent9286296f46d5281bb4e1a4b576140f2f4770a66c (diff)
initial revision. See README for what works
--HG-- extra : transplant_source : %FBQ%B3%C5%0E%85%E8%0B%154%F5t%19%2A%C6p%A5%1Dd%F1
Diffstat (limited to 'README')
-rw-r--r--README18
1 files changed, 18 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 00000000..3b96e648
--- /dev/null
+++ b/README
@@ -0,0 +1,18 @@
+>>>from cnotmuch import notmuch
+>>>db = notmuch.Database("/home/spaetz/mail")
+>>>db.get_path()
+>>>tags = db.get_all_tags()
+>>>for tag in tags:
+>>> print tag
+
+#---------------------------------------------
+
+>>>db = notmuch.Database("/home/spaetz/mailHAHA")
+NotmuchError: Could not open the specified database
+
+#---------------------------------------------
+
+>>>tags = notmuch.Database("/home/spaetz/mail").get_all_tags()
+>>>del(tags)
+Freeing the Tags now
+Freeing the database now \ No newline at end of file