<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test, branch 0.34.3</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.34.3</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.34.3'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2022-01-08T20:29:41Z</updated>
<entry>
<title>python-cffi: returned OwnedMessage objects from Message.replies</title>
<updated>2022-01-08T20:29:41Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-01-08T14:03:16Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9e7ea628e6bddbd7345d053a3daf14af74896cc2'/>
<id>urn:sha1:9e7ea628e6bddbd7345d053a3daf14af74896cc2</id>
<content type='text'>
If we return regular Message objects, python will try to destroy them,
and the underlying notmuch object, causing e.g. the crash [1].

[1]: id:87sfu6utxg.fsf@tethera.net
</content>
</entry>
<entry>
<title>test: add known broken tests for recursive traversal of replies.</title>
<updated>2022-01-08T20:29:41Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-01-08T14:03:15Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d9a2b900b6525874b913276af91840983d81b3f1'/>
<id>urn:sha1:d9a2b900b6525874b913276af91840983d81b3f1</id>
<content type='text'>
This reproduces the bug reported at [1]. The second test hints at the
solution, making reply return OwnedMessage objects.

[1]: id:87sfu6utxg.fsf@tethera.net
</content>
</entry>
<entry>
<title>lib/open: do not consider .notmuch alone as an existing database.</title>
<updated>2021-12-29T18:11:21Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-12-25T21:22:56Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=25e0f5e59293ce961549201fdc74f81a3cc1675c'/>
<id>urn:sha1:25e0f5e59293ce961549201fdc74f81a3cc1675c</id>
<content type='text'>
It makes perfect sense for users to want to pre-create .notmuch,
e.g. to install hooks, so we should handle the case of a .notmuch
directory without an actual xapian database more gracefully.
</content>
</entry>
<entry>
<title>test/new: add known broken test for missing xapian directory.</title>
<updated>2021-12-29T18:11:10Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-12-25T21:22:55Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e43bad4883cf8a0c1d58d50238da599f9e170307'/>
<id>urn:sha1:e43bad4883cf8a0c1d58d50238da599f9e170307</id>
<content type='text'>
`notmuch new' should go ahead and create the xapian database if it is
missing, even in the case where the parent .notmuch (or equivalent)
directory exists.
</content>
</entry>
<entry>
<title>python-cffi: switch to notmuch_database_{open,create}_with_config</title>
<updated>2021-12-04T12:42:31Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-10-30T16:22:35Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d7f95724132bf658fd151630185899737e2ed829'/>
<id>urn:sha1:d7f95724132bf658fd151630185899737e2ed829</id>
<content type='text'>
Since release 0.32, libnotmuch provides searching for database and
configuration paths. This commit changes the python module notmuch2 to
use those facilities.

This fixes the bug reported in [1], along with a couple of the
deprecation warnings in the python bindings.

Database.default_path is deprecated, since it no longer faithfully
reflects what libnotmuch is doing, and it is also no longer used in
the bindings themselves.

This commit choose the default of config=CONFIG.EMPTY (equivalent to
passing "" to notmuch_database_open_with_config).  This makes the
change upward compatible API-wise (at least as far as the test suite
verifies), but changing the default to CONFIG.SEARCH would probably be
more convenient for bindings users.

[1]: id:87h7d4wp6b.fsf@tethera.net
</content>
</entry>
<entry>
<title>test: add known broken tests for python bindings in split configs</title>
<updated>2021-12-04T12:36:41Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-10-30T16:22:34Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=caafab01a4409fd2a1a5d31b3d05815bf587d8e0'/>
<id>urn:sha1:caafab01a4409fd2a1a5d31b3d05815bf587d8e0</id>
<content type='text'>
This reproduces the bug(s) reported in id:87h7d4wp6b.fsf@tethera.net
</content>
</entry>
<entry>
<title>test: add python-cffi bindings to path for test_python</title>
<updated>2021-12-04T12:36:23Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-10-30T16:22:33Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5f077bef37462267258f95f7400596a157878b14'/>
<id>urn:sha1:5f077bef37462267258f95f7400596a157878b14</id>
<content type='text'>
This will allow testing the new python bindings using test_python, in
addition to the current invocation of pytest.
</content>
</entry>
<entry>
<title>lib/config: don't overwrite database.path if the caller passed it</title>
<updated>2021-12-04T00:52:11Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-10-28T01:34:19Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=59aac9cef37a9937bdf2265078d063673111f80b'/>
<id>urn:sha1:59aac9cef37a9937bdf2265078d063673111f80b</id>
<content type='text'>
If the user passed a path, and we opened it, then we consider that
definitive definition of "database.path". This makes libnotmuch
respond more gracefully to certain erroneous combinations of
NOTMUCH_CONFIG settings and config file contents.
</content>
</entry>
<entry>
<title>test: add known broken test for conflict with database parameter</title>
<updated>2021-12-04T00:49:36Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-10-28T01:34:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=378415a55762ff0222e3de6a2e20a9823ce1d07e'/>
<id>urn:sha1:378415a55762ff0222e3de6a2e20a9823ce1d07e</id>
<content type='text'>
This is arguably user error: having configuration file with bad
settings in it (and/or having a bad NOTMUCH_CONFIG environment
variable).  On the other hand returning a different path than was
actually opened is definitely a bug.
</content>
</entry>
<entry>
<title>test/libconfig: use 'export' for remaining sets of NOTMUCH_CONFIG</title>
<updated>2021-12-04T00:47:05Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-12-04T00:47:05Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=59a778ae4bae182101c43f1acde08452a6542299'/>
<id>urn:sha1:59a778ae4bae182101c43f1acde08452a6542299</id>
<content type='text'>
It makes the tests easier to understand if we always use export for
environment variables.
</content>
</entry>
</feed>
