mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
18 lines
480 B
Text
18 lines
480 B
Text
|
>>>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
|