notmuch clon
Find a file
Sebastian Spaeth d566ae643c Database(): honor NOTMUCH_CONFIG env variable for reading the standard database location.
Also replaces all Database.MODE.* defaults in the keyword arguments with their numeric replacement, they do not seem to be available yet at that time, so the python parser complained about them as being unknown.
2010-03-18 18:48:36 +01:00
cnotmuch Database(): honor NOTMUCH_CONFIG env variable for reading the standard database location. 2010-03-18 18:48:36 +01:00
docs docs: stub out remaining missing bindings to get a reminder 2010-03-18 09:02:59 +01:00
.hgignore hgignore: update to ignore static documentation 2010-03-16 20:35:34 +01:00
notmuch notmuch: implement tag command 2010-03-17 17:32:37 +01:00
README README: add link to static docs 2010-03-17 09:28:39 +01:00

cnotmuch -- The python interface to notmuch.so
==============================================
To create the documentation with sphinx installed, go to the docs directory and
"make html". A static version of the documentation is available at:

http://spaetz.bitbucket.org

All code is available under the GNU GPLv3+ (see docs/COPYING) unless specified otherwise.

Usage
-----
For more examples of how to use the cnotmuch interface, have a look at the
notmuch "binary" and the generated documentation.

Example session:
>>>from cnotmuch import notmuch
>>>db = notmuch.Database("/home/spaetz/mail")
db.get_path()
'/home/spaetz/mail'
>>>tags = db.get_all_tags()
>>>for tag in tags: 
>>>  print tag
inbox
...
maildir::draft
#---------------------------------------------

q = notmuch.Query(db,'from:Sebastian')
count = len(q.search_messages())
1300

#---------------------------------------------

>>>db = notmuch.Database("/home/spaetz/mailHAHA")
NotmuchError: Could not open the specified database

#---------------------------------------------

>>>tags = notmuch.Database("/home/spaetz/mail").get_all_tags()
>>>del(tags)