<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/notmuch-insert.c, branch 0.39_rc2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.39_rc2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.39_rc2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2022-02-20T02:11:35Z</updated>
<entry>
<title>CLI/insert: escape envelope from</title>
<updated>2022-02-20T02:11:35Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-02-12T02:47:03Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b320d3fb59d80b071459a0b2f28c4340ac687327'/>
<id>urn:sha1:b320d3fb59d80b071459a0b2f28c4340ac687327</id>
<content type='text'>
The idea is to do as little parsing and modification of the delivered
message as possible. Luckily the position of the "envelope header"
lets us escape it by replacing the first 5 characters of the stream
with a regular header name (with ':').
</content>
</entry>
<entry>
<title>CLI/insert: split copy_fd</title>
<updated>2022-02-20T02:08:55Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-02-13T14:48:47Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=329bb4ddf4278edb14e3ff335d7547c0e0396b8e'/>
<id>urn:sha1:329bb4ddf4278edb14e3ff335d7547c0e0396b8e</id>
<content type='text'>
This helps maintainability and enables code-reuse of our home-brewed
buffered-write code.

This commit is mostly code movement.
</content>
</entry>
<entry>
<title>CLI: move indexopts variable out of shared options block</title>
<updated>2021-10-23T12:51:50Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-06-12T13:26:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2ce6c76a61c907b5d1d508e12255e83d9256937c'/>
<id>urn:sha1:2ce6c76a61c907b5d1d508e12255e83d9256937c</id>
<content type='text'>
This reduces the amount of global state.  Furthermore, index options
can be set (in principle) in several ways, not just in the one
function for processing indexing command line options.
</content>
</entry>
<entry>
<title>CLI: make variable n_requested_db_uuid file scope.</title>
<updated>2021-09-05T00:07:19Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-08-24T15:17:10Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d447b694b498c3e18a22f1eb15139a798c6aab26'/>
<id>urn:sha1:d447b694b498c3e18a22f1eb15139a798c6aab26</id>
<content type='text'>
It turns out that now that we pass an open database into the
subcommands, it is easy to check any requested uuid against the
database at the same time as we process the other shared
arguments. This results in overall less boilerplate code, as well as
making a CLI scope function and variable file scope in notmuch.c.
</content>
</entry>
<entry>
<title>CLI: make static message strings const</title>
<updated>2021-05-14T09:42:55Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-05-12T23:40:23Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0c6569d97cda26cf6ce71da86d845d4276967016'/>
<id>urn:sha1:0c6569d97cda26cf6ce71da86d845d4276967016</id>
<content type='text'>
This is both a bit clearer and avoids the possibility of modification.
</content>
</entry>
<entry>
<title>CLI: drop notmuch_config_t from subcommand interface.</title>
<updated>2021-04-07T00:32:36Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-02-27T14:07:45Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1c747a501c0ed7df5eaa2b994b9ad11d8981c62c'/>
<id>urn:sha1:1c747a501c0ed7df5eaa2b994b9ad11d8981c62c</id>
<content type='text'>
At this point it is unused in all subcommands.
</content>
</entry>
<entry>
<title>CLI/insert: support split database and mail root</title>
<updated>2021-03-20T10:44:08Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-01-09T11:29:07Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=74c3cc03c219f1046d2672ef686c91b3a7f8b806'/>
<id>urn:sha1:74c3cc03c219f1046d2672ef686c91b3a7f8b806</id>
<content type='text'>
The new test is in T055-path-config because it uses the helper
function split_config, and because it seems easier to put the
database path related tests in one place.
</content>
</entry>
<entry>
<title>cli: run uncrustify</title>
<updated>2021-03-13T12:45:34Z</updated>
<author>
<name>uncrustify</name>
<email>david@tethera.net</email>
</author>
<published>2021-03-13T12:45:34Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=eef21c284742fa5ae14d7d352acc3a4dc98821ce'/>
<id>urn:sha1:eef21c284742fa5ae14d7d352acc3a4dc98821ce</id>
<content type='text'>
This is the result of running

     $ uncrustify --replace --config devel/uncrustify.cfg *.c *.h

in the top level source directory

Line breaks were then adjusted manually to keep argc and argv
together.
</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>CLI/insert: convert to new config framework.</title>
<updated>2021-02-06T23:17:34Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-08-26T11:43:33Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f994f0e7df178eb31c656329bb28ffa832ac4364'/>
<id>urn:sha1:f994f0e7df178eb31c656329bb28ffa832ac4364</id>
<content type='text'>
The new talloc context is needed to run the hook at the very end of
the function. That in turn is needed so that this process gives up the
write lock on the database.
</content>
</entry>
</feed>
