[PATCH] lib: avoid casting gint64 to time_t

2020-06-30 Thread David Bremner
This is a partial fix for problems with 64 bit timestamps on 32 bit architectures. In certain (not completely understood by me) cases this casting causes 32bit overflows and yields negative timestamps for times in the far future. In g_mime_utils_header_decode_date_unix, there is really no reason

[PATCH 1/2] Revert "python-cffi: read version from notmuch version file"

2020-06-30 Thread David Bremner
This reverts commit 81057164cddf6a5c1d4c30a23767c4de8e615c1c. That version turns out not to work with some variety of pip install. --- bindings/python-cffi/setup.py | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/bindings/python-cffi/setup.py

[PATCH 2/2] bindings/python-cffi: update version from global version.

2020-06-30 Thread David Bremner
Copy machinery from the older python bindings --- Makefile.global | 1 + Makefile.local | 2 +- bindings/python-cffi/notmuch2/version.py | 3 +++ bindings/python-cffi/setup.py| 9 - bindings/python/setup.py | 2

[PATCH 4/4] lib/message: catch exception in n_m_get_thread_id

2020-06-30 Thread David Bremner
This allows us to return an error value from the library. --- lib/message.cc | 7 ++- test/T560-lib-error.sh | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/message.cc b/lib/message.cc index b7a64b1c..3ca7b902 100644 --- a/lib/message.cc +++ b/lib/message.cc

[PATCH 3/4] test: add known broken test for n_m_get_thread_id on closed db

2020-06-30 Thread David Bremner
This will be fixed in the next commit. --- test/T560-lib-error.sh | 18 ++ 1 file changed, 18 insertions(+) diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh index 5a5f66b8..b5600851 100755 --- a/test/T560-lib-error.sh +++ b/test/T560-lib-error.sh @@ -358,4 +358,22 @@

Re: notmuch.readthedocs.org

2020-06-30 Thread David Bremner
Justus Winter writes: >> >> Hi guys. >> >> Could one of you make me an admin? At minimum there needs to be some way >> to pass on maintainership to active people. It's been many years since >> there was an update. > > Yes, sorry for that. I managed to recover my account there. What is > your

[PATCH] doc: update name of gmime package to install

2020-06-30 Thread David Bremner
Fedora still has an old gmime-devel which is 2.6.x. This is no longer supported by notmuch. --- INSTALL | 2 +- configure | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/INSTALL b/INSTALL index f1236e71..3f11c2b7 100644 --- a/INSTALL +++ b/INSTALL @@ -95,7 +95,7 @@

[PATCH] bindings/python-cffi: copy version file into bindings dir

2020-06-30 Thread David Bremner
Attempt to avoid breaking "pip install ." As far as I can tell, we need to have a copy (not just a relative symlink) of the version file. --- Makefile.local| 1 + bindings/python-cffi/setup.py | 8 +--- bindings/python-cffi/version | 1 + 3 files changed, 3 insertions(+), 7

Re: notmuch.readthedocs.org

2020-06-30 Thread Justus Winter
David Bremner writes: > David Bremner writes: > >> >> Hi Justus, Hi Ben; >> >> I notice these are a bit stale again. Is one of you planning on >> updating, or should we pass on maintence (or shut it down?) >> >> d > > Hi guys. > > Could one of you make me an admin? At minimum there needs to be

introduce exception handling at top level of libnotmuch

2020-06-30 Thread David Bremner
I know that some of you are not C++ fans, but at the moment this is the cleanest fix I can think of to uncaught xapian exceptions causing calls to the library to die. Floris reminded me of this recently with the discussion about operations on closed databases, but cleaning up the handling of

Re: notmuch.readthedocs.org

2020-06-30 Thread David Bremner
David Bremner writes: > > Hi Justus, Hi Ben; > > I notice these are a bit stale again. Is one of you planning on > updating, or should we pass on maintence (or shut it down?) > > d Hi guys. Could one of you make me an admin? At minimum there needs to be some way to pass on maintainership to

Re: notmuch.readthedocs.org

2020-06-30 Thread David Bremner
Justus Winter writes: >> >> Could one of you make me an admin? At minimum there needs to be some way >> to pass on maintainership to active people. It's been many years since >> there was an update. > > Yes, sorry for that. I managed to recover my account there. What is > your user name? > >

[PATCH 2/4] lib: catch error from closed db in n_m_get_message_id

2020-06-30 Thread David Bremner
By catching it at the library top level, we can return an error value. --- lib/message.cc | 23 +++ lib/notmuch.h | 5 ++--- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/lib/message.cc b/lib/message.cc index 0fa0eb3a..b7a64b1c 100644 --- a/lib/message.cc

[PATCH 1/4] test: add known broken test for error handling on closed database

2020-06-30 Thread David Bremner
Based on id:87d05je1j6@powell.devork.be --- test/T560-lib-error.sh | 40 test/notmuch-test.h| 1 + 2 files changed, 41 insertions(+) diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh index 06a6b860..5a5f66b8 100755 ---

Re: notmuch.readthedocs.org

2020-06-30 Thread Justus Winter
David Bremner writes: > sending again with a signature. I am bremner on readthedocs.io Done. signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

Re: notmuch.readthedocs.org

2020-06-30 Thread David Bremner
Justus Winter writes: > David Bremner writes: > >> sending again with a signature. I am bremner on readthedocs.io > > Done. Thanks Justus. It will take a bit of time to figure things out. I hope it can be set up in a way that doesn't require manual intervention on the web UI. We'll see. d