summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-10-11debian: changelog stanza for 0.90.9David Bremner
Admit that there have been no changes since the last release candidate.
2011-10-11version: bump to 0.9David Bremner
also bump python bindings version.
2011-10-11NEWS: document API changes to n_d_find_message{,_by_filename}David Bremner
For details the user will have to refer to the source. Reformat Ruby news consistently with Python.
2011-10-11NEWS: document API changes to n_d_find_message{,_by_filename}David Bremner
For details the user will have to refer to the source.
2011-10-09test: add two emacs tests for show mode refreshJameson Graef Rollins
The first test tests that the notmuch-show-refresh-view function produces the exact same output for an unmodified show buffer. This test should pass since the relevant functionality has already been applied. The second test tests show refresh for a show buffer that has been modified by navigation and message visibility toggling. Ideally refresh-view should preserve this state of the notmuch-show buffer. Unfortunately it currently does not, so this test is know to be broken and is marked as such.
2011-10-09NEWS: add notes about emacs improvements and reply formating cleanupJameson Graef Rollins
2011-10-07version: bump to 0.9~rc2David Bremner
We continue to keep the python bindings version in sync manually
2011-10-07debian: update changelog for 0.9~rc2-1David Bremner
Document upstream changes since 0.9~rc1-1
2011-10-06emacs: add notmuch-show-refresh-view functionJameson Graef Rollins
This function, like the equivalent for notmuch-search, just refreshes the current show view. Like in notmuch-search, this new function is bound to "=". If a prefix is given then the redisplay happens with the crypto-switch set, which displays the thread with the opposite logic of whatever is set in the notmuch-crypto-process-mime customization variable.
2011-10-06emacs: Add callback functions to crypto sigstatus button.Jameson Graef Rollins
This adds two callback functions to the sigstatus button. If the sig status is "good", then clicking the button displays the output of "gpg --list-keys" on the key fingerprint. If the sigstatus is "bad", then clicking the button will retrieve the key from the keyserver, and redisplay the current buffer. Thanks to David Bremner <bremner@unb.ca> for help with this.
2011-10-06Ignore "application/pgp-*" parts in reply.Jameson Graef Rollins
The quoted text doesn't need to mention that the message being replied to had these crufty parts.
2011-10-06test: test for absence of "Non-text part: application/pgp-*" lines in replyJameson Graef Rollins
In reply, the quoted text does not need to mention that the original message had "application/pgp-signed" or "application/pgp-encrypted" parts.
2011-10-06Fix notmuch-reply to not output "Non-text part:" lines for non-leafnode parts.Jameson Graef Rollins
These lines are just cruft in this case, and can be removed.
2011-10-06test/multipart: test for absence of "Non-text part:" lines in reply for multipart/* and message/rfc822 partsJameson Graef Rollins
There's no reason to output "Non-text part:" lines for parts that are not leaf nodes, eg. multipart/* and message/rfc822. We fix the text here to test for their absence. The next patch will fix reply accordingly.
2011-10-05python: Set status in the class definitionsSebastian Spaeth
Technically, this is a superfluous change, as the self.status variable currently gets set in NotmuchErrors's __new__ function. However, in the long run I would like to get rid of the weird __new__ implementation which might be somewhat confusing for users (NotmuchError(status) returns a different class, e.g. OutOfMemoryError) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-10-05python: help function Query._assert_query_is_initializedSebastian Spaeth
Remove code duplication by using the new helper function. Also raise the new fine grained exceptions in many cases, rather than the more generic NotmuchErrors. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-10-05python: clean up docstrings and API documentationSebastian Spaeth
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-10-05python: whitespace fixed in docstringsSebastian Spaeth
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-10-05python: Add the new exception types in the API documentationSebastian Spaeth
as they should be documented... Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-10-05python: Catch up with find_message(by_filename) API changesSebastian Spaeth
message is now an out parameter, and we get an additional status code as a result. Hurray \o/. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-10-05python: also use libnotmuch.so.2Sebastian Spaeth
Catch up with the major version bump. I wonder if this could somehow be automatically made the correct version number. Oh well, I hope it doesn't change too often :-). Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-10-04debian: update packaging for new sonameDavid Bremner
we need - a new changelog stanza, because the symbols files need a new version - s/libnotmuch1/libnotmuch2/ everywhere - update symbols file, s/.so.1/.so.2/, and bump minimum versions on changed symbols (although the latter is just documentation)
2011-10-04lib: bump SONAMEDavid Bremner
Based on discussions with amdragon, tschwinge, and others on IRC, I concluded that 1) symbol versioning was probably overkill for libnotmuch 2) It was also probably GNU ld specific 3) Most importantly, nobody could tell me on short notice how exactly it works. So since the change to the notmuch_database_find_message breaks the previous ABI, we need to bump the SONAME.
2011-10-04ruby: Fix macros, use quotingAli Polatel
Fix Data_Get_Notmuch_* macro definitions broken by prev. commit Adequate quoting for Data_Get_Notmuch_* macros Remove duplicated RSTRING_PTR() macros, move it to defs.h
2011-10-04ruby: Really add wrappers for database_find_message*Ali Polatel
Commit 898613116db746aa0f915ae43da8aba28545203d only added wrapper functions but did not register them. Register the functions in module's initialization function.
2011-10-04ruby: be consistent with notmuch's coding styleAli Polatel
No functional change, just indentation
2011-10-04ruby: Add wrappers for database_find_message*Ali Polatel
Two new wrappers: Notmuch::Database.find_message(id) => Notmuch::Message or nil Notmuch::Database.find_message_by_filename(path) => Notmuch::Message or nil
2011-10-04Merge remote-tracking branch 'alip/find_message-v3'David Bremner
2011-10-04lib: make find_message{,by_filename) report errorsAli Polatel
Previously, the functions notmuch_database_find_message() and notmuch_database_find_message_by_filename() functions did not properly report error condition to the library user. For more information, read the thread on the notmuch mailing list starting with my mail "id:871uv2unfd.fsf@gmail.com" Make these functions accept a pointer to 'notmuch_message_t' as argument and return notmuch_status_t which may be used to check for any error condition. restore: Modify for the new notmuch_database_find_message() new: Modify for the new notmuch_database_find_message_by_filename()
2011-10-04lib: destroy message object after message removalAli Polatel
notmuch_database_remove_message() must call notmuch_message_destroy() once it is done handling message removal.
2011-10-01python: fix Message.get_filenames()Thomas Jost
Previously, the Filenames generator only yielded *one* filename before returning, making Message.get_filenames() behave as Message.get_filename(). This commit fixes this incorrect behavior: now the generator yields all the filenames, as expected.
2011-09-30python: rework creating of SubclassesSebastian Spaeth
Add some smart magic, so that when we invoke a NotmuchError(STATUSVALUE), a nicely derived subclass is created, e.g. a OutOfMemoryError. This way users can easily distinguish between error types, while still catching NotmuchError. I have tested this, and hope it works for others too. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-09-30python: provide more exception classesJustus Winter
To make the exception handling more effective in code using the python bindings it is necessary to differentiate between the different kind of failures. Add an exception class for each status code and add a decode classmethod to the NotmuchError class that acts as a factory. Import the new classes in __init__.py so they can be easily imported by anyone. Patch modifed by Sebastian Spaeth. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2011-09-30python: fix docstring of Message.get_header()Justus Winter
Update the docstring from notmuch.h. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2011-09-29python: Add new functions in API documentationSebastian Spaeth
Add documentation for the three new functions and add in which version they have been added. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-09-29python: Improve code documentationSebastian Spaeth
1) Fix added .gitignore from commit dc8a1745 to work on the docs folder 2) Improve in-code developer documentation to produce better sphinx-generated documentation. No code changes. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-09-29NEWS: Note implementation bug for python bindingSebastian Spaeth
Make note that find_message_by_name currently crashes the python process if the Database is READ-ONLY. This should be fixed in the underlying libnotmuch. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-09-29NEWS: Update with python binding newsSebastian Spaeth
List major changes. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-09-29properly raise exceptions in python bindingsJustus Winter
There are various locations where exceptions are constructed but not raised. This patch adds the necessary raise statements. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2011-09-29python: raise a more specific error in Messages.print_messagesJustus Winter
Raising Exception is considered bad since the only way to catch it is to do 'except Exception'. Raising a TypeError is more appropriate. Since the format parameter has already been validated, checking it again is not necessary. Simplify this conditional. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2011-09-29python: rename _verify_dir_initialized to _assert_dir_is_initializedJustus Winter
Rename the function to clarify its effect and remove all the comments accompanying each call to the function. Modified by Sebastian Spaeth to apply cleanly again and remove some blank lines. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de> Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-09-29python: rename _verify_initialized_db to _assert_db_is_initializedJustus Winter
Rename the function to clarify its effect and remove all the comments accompanying each call to the function. Modified slightly by Sebastian Spaeth to catch all new instances and remove some blank lines too. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2011-09-29python: fix NotmuchError.__str__ if status == NoneJustus Winter
Passing None to STATUS.status2str raises an ArgumentError. Add a check for this case and provide a generic message. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2011-09-29python: add status and message attributes to NotmuchErrorJustus Winter
Providing exception objects with meaningful attribute names is much nicer than using e.args[]. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2011-09-29python: add a .gitignore file and refine the toplevel oneJustus Winter
The line 'notmuch' in the toplevel .gitignore file is to broad and matches bindings/python/notmuch making it cumbersome to git-add files within that directory. Refine the toplevel file to only match the generated notmuch executable and add a more specialized .gitignore file to the python directory. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2011-09-28python: add begin|end_atomic bindingsSebastian Spaeth
* Add UNBALANCED_ATOMIC status code Catch up with the notmuch status codes, and add the UNBALANCED_ATOMIC one. * Add the begin_atomic and end_atomic calls to libnotmuch Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-09-28python: Add database_find_message_by_filename bindingsSebastian Spaeth
Add it :-) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-09-26NEWS: add item for python bindings.David Bremner
Just the one unicode related change this release.
2011-09-26NEWS: add item for Ruby bindings.David Bremner
This is based on a quick scan of git log.
2011-09-26NEWS: start release notes for 0.9David Bremner
Thanks to Austin Clements for providing these notes, and the patches they describe.