notmuch clon
Find a file
Sebastian Spaeth c54b2683cd Fixing the crashes that I was seeing
--HG--
extra : transplant_source : %3E%B1%BB%DF%3C%22%A6%CC%90Z%E8v%95%962%DD%B2%A1%11%CC
2010-03-16 14:45:01 +01:00
cnotmuch Fixing the crashes that I was seeing 2010-03-16 14:45:01 +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
notmuch some more stubs 2010-03-16 12:28:05 +01:00
README improve README example session to reflect reality 2010-03-15 17:12:52 +01:00

>>>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