1 notmuch -- The python interface to notmuch.so
2 ==============================================
4 This module makes the functionality of the notmuch library
5 (`http://notmuchmail.org`_) available to python. Successful import of
6 this modul depends on a libnotmuch.so|dll being available on the
9 If you have downloaded the full source tarball, you can create the
10 documentation with sphinx installed, go to the docs directory and
11 "make html". A static version of the documentation is available at:
13 http://packages.python.org/notmuch/
15 The current source code is being hosted at
16 http://bitbucket.org/spaetz/cnotmuch which also provides an issue
17 tracker, and release downloads. This package is tracked by the python
18 package index repository at `http://pypi.python.org/pypi/notmuch`_ and can thus be installed on a user's computer easily via "sudo easy_install notmuch" (you will still need to install the notmuch shared library separately as it is not included in this package).
20 The original source has been provided by (c)Sebastian Spaeth, 2010.
21 All code is available under the GNU GPLv3+ (see docs/COPYING) unless specified otherwise.
24 INSTALLATION & DEINSTALL
25 ------------------------
27 The notmuch python module is available on pypi.python.org. This means
28 you can do "easy_install notmuch" on your linux box and it will get
31 /usr/local/lib/python2.x/dist-packages/
33 For uninstalling, you'll need to remove the "notmuch-0.4-py2.x.egg"
34 (or similar) directory and delete one entry in the "easy-install.pth"
35 file in that directory.
37 It needs to have a libnotmuch.so or libnotmuch.so.1 available in some
38 library folder or will raise an exception when loading.
39 "OSError: libnotmuch.so.1: cannot open shared object file: No such file or directory"
44 For more examples of how to use the notmuch interface, have a look at the
45 notmuch "binary" and the generated documentation.
49 >>>db = notmuch.Database("/home/spaetz/mail")
52 >>>tags = db.get_all_tags()
58 #---------------------------------------------
60 q = notmuch.Query(db,'from:Sebastian')
61 count = len(q.search_messages())
64 #---------------------------------------------
66 >>>db = notmuch.Database("/home/spaetz/mailHAHA")
67 NotmuchError: Could not open the specified database
69 #---------------------------------------------
71 >>>tags = notmuch.Database("/home/spaetz/mail").get_all_tags()
75 Building for a Debian package
76 ------------------------------
77 dpkg-buildpackage -i"\.hg|\/build"
82 0.1 First public release
83 0.1.1 Fixed Database.create_query()
84 0.2.0 Implemented Thread() and Threads() methods
85 0.2.1 Implemented the remaining API methods, notably Directory() and Filenames()
87 0.3.0 Incorporated in the notmuchmail.org git repository