[PATCH] NEWS, python: add --libnotmuch-dir option to "setup.py install"

2016-06-27 Thread Daniel Lee Harple
This change fixes the python bindings on OS X 10.11, which introduced a feature called System Integrity Protection. The /usr/bin/python executable has the "restricted" flag set, which means dlopen() requires an absolute path to the library that is to be loaded. --- NEWS

Re: [PATCH] doc: forbid further operations on a closed database

2016-06-27 Thread Tomi Ollila
On Mon, Jun 27 2016, David Bremner wrote: > We could add many null pointer checks, but currently I don't see a use > case that justifies it. > --- > lib/notmuch.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/lib/notmuch.h b/lib/notmuch.h > index d4a97cb..2faa146 10

[PATCH] lib: update cached mtime in notmuch_directory_set_mtime

2016-06-27 Thread David Bremner
Without this change, the following code fails notmuch_directory_set_mtime(dir, 12345); assert(notmuch_directory_get_mtime(dir) == 12345); --- lib/directory.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/directory.cc b/lib/directory.cc index a19f777..5de3319 100644 --- a/lib/dir

[PATCH] doc: forbid further operations on a closed database

2016-06-27 Thread David Bremner
We could add many null pointer checks, but currently I don't see a use case that justifies it. --- lib/notmuch.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/notmuch.h b/lib/notmuch.h index d4a97cb..2faa146 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -332,7 +332

Re: [PATCH v2] test: add "set -u" to test-lib.sh

2016-06-27 Thread Tomi Ollila
On Mon, Jun 27 2016, David Bremner wrote: > Tomi Ollila writes: > >> This prohibits unset variables to expand to empty strings. >> Without this e.g misspelled variables cause unintentional results. >> >> Now all the test variables are either initialized, or in case of >> optional arguments and u

[PATCH] lib: regexp matching in 'subject' and 'from'

2016-06-27 Thread David Bremner
the idea is that you can run % notmuch search re:subject: % notmuch search re:from:' or % notmuch search subject:"your usual phrase search" % notmuch search from:"usual phrase search" This should also work with bindings, since it extends the query parser. This is trivial to extend for other va

Re: [PATCH v2] test: add "set -u" to test-lib.sh

2016-06-27 Thread David Bremner
Tomi Ollila writes: > This prohibits unset variables to expand to empty strings. > Without this e.g misspelled variables cause unintentional results. > > Now all the test variables are either initialized, or in case of > optional arguments and user-provided environment variables (i.e. > when it i