[PATCH v2 5/5] news: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
--- NEWS | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index c67f186..f987811 100644 --- a/NEWS +++ b/NEWS @@ -91,12 +91,12 @@ notmuch_database_close and notmuch_database_destroy database and thus release the lock associated with it without

[PATCH v2 4/5] ruby: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
--- bindings/ruby/database.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bindings/ruby/database.c b/bindings/ruby/database.c index 409d54f..e84f726 100644 --- a/bindings/ruby/database.c +++ b/bindings/ruby/database.c @@ -252,6 +252,7 @@ VALUE

[PATCH v2 3/5] python: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin 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. --- bindings/python/notmuch/database.py | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-)

[PATCH v2 2/5] go: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
--- bindings/go/src/notmuch/notmuch.go | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go index 12de4c8..00bd53a 100644 --- a/bindings/go/src/notmuch/notmuch.go +++

[PATCH v2 1/5] lib/cli: Make notmuch_database_get_directory return a status code

2012-05-13 Thread Austin Clements
Previously, notmuch_database_get_directory had no way to indicate how it had failed. This changes its prototype to return a status code and set an out-argument to the retrieved directory, like similar functions in the library API. This does *not* change its currently broken behavior of creating

[PATCH v2 0/5] Fix notmuch_database_get_directory API

2012-05-13 Thread Austin Clements
This version moves a Python bindings change that had slipped into the Go patch into the Python patch and words the future-proofing warning on notmuch_database_get_directory more strongly. There are no code changes from v1.

[PATCH 2/5] go: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
Quoth Justus Winter on May 13 at 11:51 pm: > Hi Austin, > > thanks for taking care of this. > > Quoting Austin Clements (2012-05-13 21:57:06) > > --- > > bindings/go/src/notmuch/notmuch.go | 13 +++-- > > bindings/python/notmuch/database.py |4 ++-- > > A change to the python

[PATCH] news: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
Sorry for the spam. This was supposed to be a test message to myself and I forgot I had git-send-email configured to sent to notmuch at notmuchmail.org by default.

[PATCH] news: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
--- NEWS | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index c67f186..f987811 100644 --- a/NEWS +++ b/NEWS @@ -91,12 +91,12 @@ notmuch_database_close and notmuch_database_destroy database and thus release the lock associated with it without

[PATCH 5/5] news: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
--- NEWS | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index c67f186..f987811 100644 --- a/NEWS +++ b/NEWS @@ -91,12 +91,12 @@ notmuch_database_close and notmuch_database_destroy database and thus release the lock associated with it without

[PATCH 4/5] ruby: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
--- bindings/ruby/database.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bindings/ruby/database.c b/bindings/ruby/database.c index 409d54f..e84f726 100644 --- a/bindings/ruby/database.c +++ b/bindings/ruby/database.c @@ -252,6 +252,7 @@ VALUE

[PATCH 3/5] python: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin 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. --- bindings/python/notmuch/database.py | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff

[PATCH 2/5] go: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
--- bindings/go/src/notmuch/notmuch.go | 13 +++-- bindings/python/notmuch/database.py |4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go index 12de4c8..00bd53a 100644 ---

[PATCH 1/5] lib/cli: Make notmuch_database_get_directory return a status code

2012-05-13 Thread Austin Clements
Previously, notmuch_database_get_directory had no way to indicate how it had failed. This changes its prototype to return a status code and set an out-argument to the retrieved directory, like similar functions in the library API. This does *not* change its currently broken behavior of creating

[PATCH 0/5] Fix notmuch_database_get_directory API

2012-05-13 Thread Austin Clements
This is a proposed last-minute change for 0.13. It fixes the notmuch_database_get_directory API in the same way we're fixing notmuch_database_open, etc in this release. Since this is a backwards-incompatible change, it would be nice to lump it with the other API-breaking changes. To keep the

[PATCH] ruby: extern linkage portability improvement

2012-05-13 Thread Austin Clements
Quoth Tomi Ollila on May 10 at 8:12 pm: > Some C compilers are stricter when it comes to (tentative) definition > of a variable -- in those compilers introducing variable without 'extern' > keyword always allocates new 'storage' to the variable and linking all > these modules fails due to

Re: [PATCH] ruby: extern linkage portability improvement

2012-05-13 Thread Austin Clements
Quoth Tomi Ollila on May 10 at 8:12 pm: Some C compilers are stricter when it comes to (tentative) definition of a variable -- in those compilers introducing variable without 'extern' keyword always allocates new 'storage' to the variable and linking all these modules fails due to duplicate

[PATCH 0/5] Fix notmuch_database_get_directory API

2012-05-13 Thread Austin Clements
This is a proposed last-minute change for 0.13. It fixes the notmuch_database_get_directory API in the same way we're fixing notmuch_database_open, etc in this release. Since this is a backwards-incompatible change, it would be nice to lump it with the other API-breaking changes. To keep the

[PATCH 2/5] go: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
--- bindings/go/src/notmuch/notmuch.go | 13 +++-- bindings/python/notmuch/database.py |4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go index 12de4c8..00bd53a 100644 ---

[PATCH 5/5] news: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
--- NEWS | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index c67f186..f987811 100644 --- a/NEWS +++ b/NEWS @@ -91,12 +91,12 @@ notmuch_database_close and notmuch_database_destroy database and thus release the lock associated with it without

[PATCH 1/5] lib/cli: Make notmuch_database_get_directory return a status code

2012-05-13 Thread Austin Clements
Previously, notmuch_database_get_directory had no way to indicate how it had failed. This changes its prototype to return a status code and set an out-argument to the retrieved directory, like similar functions in the library API. This does *not* change its currently broken behavior of creating

[PATCH 4/5] ruby: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
--- bindings/ruby/database.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bindings/ruby/database.c b/bindings/ruby/database.c index 409d54f..e84f726 100644 --- a/bindings/ruby/database.c +++ b/bindings/ruby/database.c @@ -252,6 +252,7 @@ VALUE

[PATCH 3/5] python: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin 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. --- bindings/python/notmuch/database.py | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff

[PATCH] news: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
--- NEWS | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index c67f186..f987811 100644 --- a/NEWS +++ b/NEWS @@ -91,12 +91,12 @@ notmuch_database_close and notmuch_database_destroy database and thus release the lock associated with it without

Re: [PATCH] news: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
Sorry for the spam. This was supposed to be a test message to myself and I forgot I had git-send-email configured to sent to notmuch@notmuchmail.org by default. ___ notmuch mailing list notmuch@notmuchmail.org

Re: [PATCH 0/5] Fix notmuch_database_get_directory API

2012-05-13 Thread Tomi Ollila
On Sun, May 13 2012, Austin Clements amdra...@mit.edu wrote: This is a proposed last-minute change for 0.13. It fixes the notmuch_database_get_directory API in the same way we're fixing notmuch_database_open, etc in this release. Since this is a backwards-incompatible change, it would be

Re: [PATCH 2/5] go: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Justus Winter
Hi Austin, thanks for taking care of this. Quoting Austin Clements (2012-05-13 21:57:06) --- bindings/go/src/notmuch/notmuch.go | 13 +++-- bindings/python/notmuch/database.py |4 ++-- A change to the python bindings slipped into this one. Other than that this looks good. I

Re: [PATCH 0/5] Fix notmuch_database_get_directory API

2012-05-13 Thread Justus Winter
Quoting Tomi Ollila (2012-05-13 22:49:58) On Sun, May 13 2012, Austin Clements amdra...@mit.edu wrote: This is a proposed last-minute change for 0.13. It fixes the notmuch_database_get_directory API in the same way we're fixing notmuch_database_open, etc in this release. Since this is a

Re: [PATCH 2/5] go: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
Quoth Justus Winter on May 13 at 11:51 pm: Hi Austin, thanks for taking care of this. Quoting Austin Clements (2012-05-13 21:57:06) --- bindings/go/src/notmuch/notmuch.go | 13 +++-- bindings/python/notmuch/database.py |4 ++-- A change to the python bindings slipped

[PATCH v2 1/5] lib/cli: Make notmuch_database_get_directory return a status code

2012-05-13 Thread Austin Clements
Previously, notmuch_database_get_directory had no way to indicate how it had failed. This changes its prototype to return a status code and set an out-argument to the retrieved directory, like similar functions in the library API. This does *not* change its currently broken behavior of creating

[PATCH v2 2/5] go: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
--- bindings/go/src/notmuch/notmuch.go | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go index 12de4c8..00bd53a 100644 --- a/bindings/go/src/notmuch/notmuch.go +++

[PATCH v2 4/5] ruby: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
--- bindings/ruby/database.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bindings/ruby/database.c b/bindings/ruby/database.c index 409d54f..e84f726 100644 --- a/bindings/ruby/database.c +++ b/bindings/ruby/database.c @@ -252,6 +252,7 @@ VALUE

[PATCH v2 3/5] python: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin 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. --- bindings/python/notmuch/database.py | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-)

[PATCH v2 5/5] news: Update for changes to notmuch_database_get_directory

2012-05-13 Thread Austin Clements
--- NEWS | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index c67f186..f987811 100644 --- a/NEWS +++ b/NEWS @@ -91,12 +91,12 @@ notmuch_database_close and notmuch_database_destroy database and thus release the lock associated with it without

Re: [PATCH 1/2] cli: also use Delivered-To header to figure out the reply from address

2012-05-13 Thread Michael Hudson-Doyle
Jani Nikula j...@nikula.org writes: Add another fallback header Delivered-To for guessing the user's from address for notmuch reply before using the Received headers. Apparently some MTAs use Delivered-To instead of X-Original-To (which already exists as a fallback). Reported-by: Michael