mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-26 04:45:20 +01:00
90c47567f4
--HG-- extra : transplant_source : %15P%B8E%1A%CE%0D%DE%CEB%E0/%E04%2B%3F%255%A1%F9
24 lines
No EOL
600 B
Text
24 lines
No EOL
600 B
Text
>>>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 |