[PATCH] interpret Xapian errors from sdterr as exceptions

2011-07-23 Thread pazz
This introduces globals.RaiseStderrErrors, a ContextManager that raises error messages printed by libnotmuch to stderr as NotmuchError(STATUS.XAPIAN_EXCEPTION, message=err). --- bindings/python/notmuch/database.py |5 + bindings/python/notmuch/globals.py | 24

[PATCH 2/2] json: date_relative for threads

2011-07-23 Thread pazz
include the date_relative field in the json formated output of notmuch search --- notmuch-search.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/notmuch-search.c b/notmuch-search.c index faccaf7..b1adc03 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -176,12

[PATCH 1/2] test: date_relative in notmuch search json output

2011-07-23 Thread pazz
expect the date_relative field for thread entries in notmuch search's json output --- test/json |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/test/json b/test/json index 5a2544c..d54bf25 100755 --- a/test/json +++ b/test/json @@ -12,6 +12,7 @@ add_message

[PATCH 1/2] test: date_relative in notmuch search json output

2011-07-23 Thread pazz
expect the date_relative field for thread entries in notmuch search's json output --- test/json |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/test/json b/test/json index 5a2544c..d54bf25 100755 --- a/test/json +++ b/test/json @@ -12,6 +12,7 @@ add_message

[PATCH 2/2] json: date_relative for threads

2011-07-23 Thread pazz
include the date_relative field in the json formated output of notmuch search --- notmuch-search.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/notmuch-search.c b/notmuch-search.c index faccaf7..b1adc03 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -176,12

[PATCH] interpret Xapian errors from sdterr as exceptions

2011-07-23 Thread pazz
This introduces globals.RaiseStderrErrors, a ContextManager that raises error messages printed by libnotmuch to stderr as NotmuchError(STATUS.XAPIAN_EXCEPTION, message=err). --- bindings/python/notmuch/database.py |5 + bindings/python/notmuch/globals.py | 24