notmuch clon
Find a file
Sebastian Spaeth 632762cd1a Tags: clarify documentation: we can only iterate once over Tags, and free underlying tags once we iterated through.
--HG--
extra : transplant_source : %0BI%C9%899k%80%8C4j%07%85%038%86%04%2A%FE%A6%A3
2010-03-15 16:00:11 +01:00
cnotmuch Tags: clarify documentation: we can only iterate once over Tags, and free underlying tags once we iterated through. 2010-03-15 16:00:11 +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