1 cnotmuch -- The python interface to notmuch.so
2 ==============================================
3 To create the documentation with sphinx installed, go to the docs directory and
4 "make html". A static version of the documentation is available at:
6 http://spaetz.bitbucket.org
8 All code is available under the GNU GPLv3+ (see docs/COPYING) unless specified otherwise.
12 For more examples of how to use the cnotmuch interface, have a look at the
13 notmuch "binary" and the generated documentation.
16 >>>from cnotmuch import notmuch
17 >>>db = notmuch.Database("/home/spaetz/mail")
20 >>>tags = db.get_all_tags()
26 #---------------------------------------------
28 q = notmuch.Query(db,'from:Sebastian')
29 count = len(q.search_messages())
32 #---------------------------------------------
34 >>>db = notmuch.Database("/home/spaetz/mailHAHA")
35 NotmuchError: Could not open the specified database
37 #---------------------------------------------
39 >>>tags = notmuch.Database("/home/spaetz/mail").get_all_tags()