2010-03-15 15:47:15 +01:00
|
|
|
>>>from cnotmuch import notmuch
|
|
|
|
>>>db = notmuch.Database("/home/spaetz/mail")
|
2010-03-15 17:12:52 +01:00
|
|
|
db.get_path()
|
|
|
|
'/home/spaetz/mail'
|
2010-03-15 15:47:15 +01:00
|
|
|
>>>tags = db.get_all_tags()
|
2010-03-15 17:12:52 +01:00
|
|
|
inited tags with 44762960 'Notmuch DB /home/spaetz/mail'
|
2010-03-15 15:47:15 +01:00
|
|
|
>>>for tag in tags:
|
|
|
|
>>> print tag
|
2010-03-15 17:12:52 +01:00
|
|
|
inbox
|
|
|
|
...
|
|
|
|
maildir::draft
|
|
|
|
Freeing the Tags now
|
2010-03-15 15:47:15 +01:00
|
|
|
|
|
|
|
#---------------------------------------------
|
|
|
|
|
|
|
|
>>>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
|