mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-24 10:24:53 +01:00
b4fdf0ae30
--HG-- extra : transplant_source : %FBQ%B3%C5%0E%85%E8%0B%154%F5t%19%2A%C6p%A5%1Dd%F1
18 lines
No EOL
480 B
Text
18 lines
No EOL
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 |