notmuch clon
Find a file
Sebastian Spaeth 63c5a6d77d Fix Database().create_query() to actually initialize the Query with the correct object.
We were passing the internal pointer to the notmuch_database_t object to Query(), but it should be initialized with the Database() object itself. This rightfully raised an exception. Yay, for thorough sanity checking.
2010-03-22 11:19:51 +01:00
cnotmuch Fix Database().create_query() to actually initialize the Query with the correct object. 2010-03-22 11:19:51 +01:00
docs Add Database.create_query() as a shorthand for db=Database();q=Query(db,"") 2010-03-19 10:55:06 +01:00
test add original notmuch testsuite 2010-03-18 19:04:49 +01:00
.hgignore setup.py and MANIFEST.in for the 0.1 release. Unfortunately post-version tag. 2010-03-22 10:48:03 +01:00
.hgtags Added tag v0.1 for changeset 27f38f75d27d 2010-03-22 10:40:08 +01:00
MANIFEST.in setup.py and MANIFEST.in for the 0.1 release. Unfortunately post-version tag. 2010-03-22 10:48:03 +01:00
notmuch notmuch restore: only delete a message's old tags if they are not a subset of the new ones. 2010-03-19 09:39:23 +01:00
README README: add link to static docs 2010-03-17 09:28:39 +01:00
setup.py setup.py and MANIFEST.in for the 0.1 release. Unfortunately post-version tag. 2010-03-22 10:48:03 +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)