aboutsummaryrefslogtreecommitdiff
path: root/bindings
AgeCommit message (Collapse)Author
2012-05-23Merge branch 'release'David Bremner
merge 0.13.1 bugfix patches back to master, fixes for emacs reply and spurious directory document creation.
2012-05-23python: Remove find_message_by_filename workaroundAustin Clements
Now that notmuch_database_find_message_by_filename works on read-only databases, remove the workaround that disabled it on read-write databases. This also adds a regression test for find_message_by_filename.
2012-05-23python: Update Database.get_directory documentationAustin Clements
notmuch_database_get_directory no longer returns an error for read-only databases, so remove ReadOnlyDatabaseError from the list of get_directory exceptions.
2012-05-17python: deprecate Messages.{format,print}_messagesJustus Winter
This code adds functionality at the python level that is unlikely to be useful for anyone. Furthermore the python bindings strive to be a thin wrapper around libnotmuch, so this code will be removed in notmuch 0.15. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-17python: deprecate Database.db_pJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-17python: fix Message.get_headerJustus Winter
8dc8495010057202b725ac029831c03f4e3ab6bd introduced a bug, if the requested header is not set the underlying notmuch function returns an empty string that also made the expression true resulting in an exception being raised. Partly revert the commit to fix this issue. Testing for equality with None is correct in this case since the restype of the function Message._get_header is c_char_p so NULL pointers are in fact converted to None in this case. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-17python: add a file abstracting away differences between python 2 and 3Justus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-17python: remove the "notmuch binary" section from the docsJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-17python: Fix the remaining broken NULL pointer testsJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-17python: use relative importsJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-17python: remove unused import of the json moduleJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-16python: remove format_message_as_{json,text} from the sphinx docsJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-16python: remove functions that have been marked as deprecated in 0.13Justus Winter
Removes Message.format_message_{internal,as_json,as_text}. This code adds functionality at the python level that is unlikely to be useful for anyone. Furthermore the python bindings strive to be a thin wrapper around libnotmuch. The code has been marked as deprecated in 0.13 and is now removed. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-16python: remove notmuch.pyJustus Winter
Removes notmuch.py. If someone wants to step up and work on this it can always be restored using the version control system. notmuch.py was meant to be a python implementation of the notmuch utility. It was never finished and hasn't been updated to changes in the API and bindings and its features and interface haven't been kept in sync with the notmuch utility. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-15version: bump to 0.13David Bremner
2012-05-15ruby: Update for changes to notmuch_database_get_directoryAustin Clements
2012-05-15python: Update for changes to notmuch_database_get_directoryAustin Clements
notmuch_database_get_directory now returns NOTMUCH_STATUS_READ_ONLY_DATABASE on its own (rather than crashing) so the workaround in Database.get_directory is no longer necessary.
2012-05-15go: Update for changes to notmuch_database_get_directoryAustin Clements
2012-05-11go: format the souce code using gofmtJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-11go: update the build systemJustus Winter
The new "go" utility does not require any Makefiles to compile go packages and programs. Remove the old Makefiles and replace the top level Makefile with one defining some convenience targets for compiling the notmuch bindings and the notmuch-addrlookup utility. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-11go: update the addrlookup utility to go 1Justus Winter
Use the new built in error type that replaces os.Error, adapt the code to the fact that strings.Split has just two arguments now. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-11go: set LDFLAGS to -lnotmuch in the packages source fileJustus Winter
Set the LDFLAGS to -lnotmuch so the resulting go package will be linked with libnotmuch. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-11go: reorganize the go bindingsJustus Winter
go 1 introduced the "go" program that simplifies building of libraries and programs. This patch reorganizes the go code so it can be compiled using the new utility, it does not change any files. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-11go: define the constant STATUS_UNBALANCED_ATOMICJustus Winter
Add the constant STATUS_UNBALANCED_ATOMIC to the list of notmuch status codes. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-11go: fix the notmuch status constantsJustus Winter
Formerly all the constants were set to zero since in golang constants are set to the previous value if no new value is specified. Use the iota operator that is incremented after each use to fix this issue. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-11go: update notmuch-addrlookup to the new APIJustus Winter
notmuch.OpenDatabase now returns a status indicating success or failure. Use this information to inform the user of any failures. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-08bump version to 0.13~rc1debian/0.13_rc1-10.13_rc1David Bremner
2012-05-08ruby: Add wrapper for notmuch_query_set_omit_excluded()Ali Polatel
2012-05-08ruby: Add workarounds to use in-tree build not the installed oneAli Polatel
- Make mkmf use the notmuch.h under ../../lib - Use libnotmuch.a instead of linking to the installed libnotmuch.so
2012-05-08ruby: Add wrapper for notmuch_query_add_tag_excludeAli Polatel
2012-05-08ruby: Add wrapper for notmuch_query_count_messagesAli Polatel
2012-05-05lib: Bump SO version from 2.0.0 to 3.0.0Austin Clements
We've changed the APIs of notmuch_database_open, notmuch_database_create, and notmuch_database_close. Amended by db: also bump string in bindings/python/notmuch/globals.py
2012-05-05ruby: Update Ruby bindings for new notmuch_database_{open, create} signaturesAustin Clements
2012-05-05python: Update Python bindings for new notmuch_database_{open, create} signaturesAustin Clements
2012-05-05go: Update Go bindings for new notmuch_database_{open, create} signaturesAustin Clements
This requires changing the return types of NewDatabase and OpenDatabase to follow the standard Go convention for returning errors.
2012-05-04go: Update to the current notmuch_database_find_message APIAustin Clements
The signature of notmuch_database_find_message was changed in 02a30767 to report errors and the Go bindings were never updated. This brings the Go bindings in sync with that change and at least makes them compile with Go r60.3, the last release before Go 1.
2012-04-30python: remove a note stating wrong things about the memory managementJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-30python: document the Database.close functionJustus Winter
Put a prominent warning into the docstring of Database.close, make the function show up in the sphinx doc and refer to the warning in the paragraph mentioning the context manager protocol. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-30python: deprecate code formatting messages as text and jsonJustus Winter
This code adds functionality at the python level that is unlikely to be useful for anyone. Furthermore the python bindings strive to be a thin wrapper around libnotmuch, so this code will be removed in notmuch 0.14. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-30python: cleanup the __nonzero__ implementationsJustus Winter
Cleanup the code, reword the docstring and use the same implementation in the Threads, Tags and Messages classes. __nonzero__ implements truth value testing. If __nonzero__ is not implemented, the python runtime would fall back to `len(..) > 0` thus exhausting the iterator. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-30python: fix NULL pointer testsJustus Winter
Fix the NULL pointer tests in the destructors of all classes and Database.create. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-30python: update the docstrings of Filenames.{__len__,__unicode}Justus Winter
Formerly the documentation was overly verbose. Reword the comment and use the same for both functions. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-30python: update the docstring of class FilenamesJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-30python: fix the documentationJustus Winter
Remove the reference to Filenames.as_generator in the sphinx documentation. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-30python: fix Message.get_filenamesJustus Winter
Do not to use the removed function Filenames.as_iterator. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-30python: remove the deprecated function Filenames.as_generatorJustus Winter
Remove the function Filenames.as_generator that has been marked as deprecated in 0.12. The class Filenames implements the iterator protocol so you can directly iterate over such objects instead. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-29python: strip superfluous single quote from copyright noticesJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-29python: add copyright and licensing information to setup.pyJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-29python: stylistic and pep8 fixes in setup.pyJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-04-29python: update the long description in setup.pyJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>