notmuch clon
Find a file
Sebastian Spaeth 7b032b6f87 implement stub for notmuch show. Remove finished ToDo items
--HG--
extra : transplant_source : 2%0B%97h%40Af%07%DD%F2%5ESX%20%05%3D%C0%C5v%F8
2010-03-16 16:41:33 +01:00
cnotmuch implement stub for notmuch show. Remove finished ToDo items 2010-03-16 16:41:33 +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
notmuch implement stub for notmuch show. Remove finished ToDo items 2010-03-16 16:41:33 +01:00
README improve README example session to reflect reality 2010-03-15 17:12:52 +01:00

>>>from cnotmuch import notmuch
>>>db = notmuch.Database("/home/spaetz/mail")
db.get_path()
'/home/spaetz/mail'
>>>tags = db.get_all_tags()
inited tags with 44762960 'Notmuch DB /home/spaetz/mail'
>>>for tag in tags: 
>>>  print tag
inbox
...
maildir::draft
Freeing the Tags now

#---------------------------------------------

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