notmuch clon
Find a file
Sebastian Spaeth b4fdf0ae30 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
2010-03-15 15:47:15 +01:00
cnotmuch initial revision. See README for what works 2010-03-15 15:47:15 +01:00
docs COPYING: add GPL v3+ 2010-03-16 22:48:35 +01:00
.hgignore initial revision. See README for what works 2010-03-15 15:47:15 +01:00
README initial revision. See README for what works 2010-03-15 15:47:15 +01:00

>>>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