<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/T400-hooks.sh, branch release</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=release</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=release'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2022-06-18T11:24:46Z</updated>
<entry>
<title>CLI: set NOTMUCH_CONFIG in hooks.</title>
<updated>2022-06-18T11:24:46Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-06-04T11:11:19Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=bfcf9a6c102af9232b6d2e720f919ff1c9b431f8'/>
<id>urn:sha1:bfcf9a6c102af9232b6d2e720f919ff1c9b431f8</id>
<content type='text'>
This addresses a bug report / feature request of Uwe Kleine-König. The
assumption is that we always load a config file in the CLI (i.e. we
never pass "" as the config file argument to
notmuch_database_open_with_config).

[1]: id:8baa58c3-7ab9-ec03-1bbd-28aa5be838f2@kleine-koenig.org
</content>
</entry>
<entry>
<title>test: add known broken tests for setting NOTMUCH_CONFIG in hooks</title>
<updated>2022-06-18T11:23:31Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-05-30T11:38:19Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e167825bca476403b0371fbdf4c8fbdfb4a6f935'/>
<id>urn:sha1:e167825bca476403b0371fbdf4c8fbdfb4a6f935</id>
<content type='text'>
Setting this according to --config was requested by Uwe
Kleine-König. There are some other ways that the configuration file
might be found in current notmuch, so check those as well.

As a bonus, fix a bug in the hook tests that left NOTMUCH_CONFIG set
even though a config file was provided via NOTMUCH_PROFILE.

[1]: id:8baa58c3-7ab9-ec03-1bbd-28aa5be838f2@kleine-koenig.org
</content>
</entry>
<entry>
<title>lib/notmuch_database_reopen: reload some database metadata</title>
<updated>2021-05-12T11:40:04Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-05-09T12:28:48Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=393c92b04271472e6fdd19da73672a60723e34aa'/>
<id>urn:sha1:393c92b04271472e6fdd19da73672a60723e34aa</id>
<content type='text'>
In some uses of reopen, new documents and threads maybe have been
added, and e.g. compaction may have changed the uuid.
</content>
</entry>
<entry>
<title>test: change database from within pre-new hook</title>
<updated>2021-05-12T11:34:34Z</updated>
<author>
<name>Michael J Gruber</name>
<email>git@grubix.eu</email>
</author>
<published>2021-05-11T20:48:52Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0729c4e81f094eb6c81ba7c4287d90726c89d619'/>
<id>urn:sha1:0729c4e81f094eb6c81ba7c4287d90726c89d619</id>
<content type='text'>
Due to the change in the config system, notmuch keeps a notmuch database
open when it would not do so before. Consequently, it can miss changes
to the database which are done from a hook (while notmuch holds the
databse in read only mode). When notmuch itself writes to the database
after that it uses wrong assumptions about the last used doc id etc.

Demonstrate this by triggering an assertion. (This new test succeeds
with notmuch 0.31.4.)

Signed-off-by: Michael J Gruber &lt;git@grubix.eu&gt;
Amended-by: db. Check for both messages
</content>
</entry>
<entry>
<title>test: test relative paths for database.hook_dir</title>
<updated>2021-05-10T14:13:07Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-05-07T10:38:32Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=891b95021908e023113533a51ce53f85c8d4ffb4'/>
<id>urn:sha1:891b95021908e023113533a51ce53f85c8d4ffb4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lib/open: fix hook directory calculation in split configuration</title>
<updated>2021-03-20T10:50:13Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-02-17T11:16:54Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e3a4abc513d314cf7550d43fdcba458421a2daac'/>
<id>urn:sha1:e3a4abc513d314cf7550d43fdcba458421a2daac</id>
<content type='text'>
Choose sibling directory of xapian database, as .notmuch may not
exist.

libgen.h is already used in debugger.c, so it is not a new dependency
/ potential portability problem.
</content>
</entry>
<entry>
<title>CLI/new: drop the write lock to run the pre-new hook.</title>
<updated>2021-03-19T01:58:02Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-03-19T01:58:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a9f74aeeb9ade477d5b80c1c2700945d6c50adb1'/>
<id>urn:sha1:a9f74aeeb9ade477d5b80c1c2700945d6c50adb1</id>
<content type='text'>
This fixes a bug reported in [1]. In principle it could be possible
avoid one of these reopens, but it complicates the logic in main with
respect to creating new databases.

[1]: id:9C1993DF-84BD-4199-A9C8-BADA98498812@bubblegen.co.uk
</content>
</entry>
<entry>
<title>test: Add tests for write access to database from hooks.</title>
<updated>2021-03-19T01:54:13Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-03-19T01:54:13Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=7d286f0272feb08aea8c1bee0b0ec6cd9766aee7'/>
<id>urn:sha1:7d286f0272feb08aea8c1bee0b0ec6cd9766aee7</id>
<content type='text'>
Recent changes to configuration handling meant the pre-new hook was
run while the database was open read only, limiting what could be done
in the hook. Add some known broken tests for this problem, as well as
a regression test for write access from the post-new hook.
</content>
</entry>
<entry>
<title>CLI: use configured hook directory</title>
<updated>2021-02-06T23:57:55Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-01-10T11:50:14Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f61d88c6f454c368282ac881a864f619a409ba42'/>
<id>urn:sha1:f61d88c6f454c368282ac881a864f619a409ba42</id>
<content type='text'>
This enables support for hooks outside the database directory.
It relies strongly on configuration information being usable between
closing the database and destroying it.
</content>
</entry>
<entry>
<title>test: use $(dirname "$0") for sourcing test-lib.sh</title>
<updated>2017-10-20T22:52:49Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-09-25T20:38:19Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a863de1e43ee34f6f5794a2759fdceb287e851aa'/>
<id>urn:sha1:a863de1e43ee34f6f5794a2759fdceb287e851aa</id>
<content type='text'>
Don't assume the tests are always run from within the source tree.
</content>
</entry>
</feed>
