<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/notmuch-dump.c, branch 0.35_rc0</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.35_rc0</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.35_rc0'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2021-09-05T00:07:19Z</updated>
<entry>
<title>CLI/{count, dump, reindex, reply, show}: enable sexp queries</title>
<updated>2021-09-05T00:07:19Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-08-24T15:17:43Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2944d5913319056dfec5c23065932fd1c87a96f6'/>
<id>urn:sha1:2944d5913319056dfec5c23065932fd1c87a96f6</id>
<content type='text'>
The change in each case is to call notmuch_query_create_with_syntax,
relying on the already inherited shared options.  As a bonus we get
improved error handling from the new query creation API.

The remaining subcommand is 'tag', which is a bit trickier.
</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: 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: 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/dump: convert to new config framework</title>
<updated>2021-02-06T23:12:34Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-08-26T10:54:10Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=53f27aaf73192babf831e907ade71dc16f6880be'/>
<id>urn:sha1:53f27aaf73192babf831e907ade71dc16f6880be</id>
<content type='text'>
This conversion is trivial because the only configuration information
accessed by dump is that stored in the database (in order to dump
it). We do need to be careful to keep the write lock on the database
to ensure dump consistency.
</content>
</entry>
<entry>
<title>CLI: add (unused) database argument to subcommands.</title>
<updated>2021-02-06T23:05:19Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-12-21T12:55:14Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=319efe21c9d2754c99951cecc71184faf7ca9054'/>
<id>urn:sha1:319efe21c9d2754c99951cecc71184faf7ca9054</id>
<content type='text'>
This will allow transitioning individual subcommands to the new
configuration framework. Eventually when they are all converted we can
remove the notmuch_config_t * argument.

For now, live with the parameter shadowing in some some subcommands;
it will go away when they are converted.
</content>
</entry>
<entry>
<title>cli/dump: replace use of gzprintf with gzputs for config values</title>
<updated>2020-04-13T20:14:50Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-04-13T02:01:38Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=690e36bacd5e53c45775586024ca70f069ca68ad'/>
<id>urn:sha1:690e36bacd5e53c45775586024ca70f069ca68ad</id>
<content type='text'>
These can be large, and hit buffer limitations of gzprintf.
</content>
</entry>
<entry>
<title>cli/dump: define GZPUTS and use it in notmuch-dump</title>
<updated>2020-04-13T20:14:50Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-04-13T01:59:12Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=24ff33082ab1a35c7a31835fba80ade145596422'/>
<id>urn:sha1:24ff33082ab1a35c7a31835fba80ade145596422</id>
<content type='text'>
Similarly to GZPRINTF, this is a drop in replacement that can be
improved where needd.
</content>
</entry>
<entry>
<title>cli/dump: define GZPRINTF macro and use it in place of gzprintf</title>
<updated>2020-04-13T20:14:50Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-04-13T01:39:11Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0d0918f604c5da419c08e3bfae005a4820395997'/>
<id>urn:sha1:0d0918f604c5da419c08e3bfae005a4820395997</id>
<content type='text'>
This will at least catch errors, and can be replaced with more
sophisticated error handling where appropriate.
</content>
</entry>
<entry>
<title>don't pass NULL as second parameter to gzerror</title>
<updated>2020-04-13T20:13:55Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-04-12T23:00:31Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2c1f783f5f4ad28d89f2e83d7253bae7bba98440'/>
<id>urn:sha1:2c1f783f5f4ad28d89f2e83d7253bae7bba98440</id>
<content type='text'>
Although (as of 1.2.11) zlib checks this parameter before writing to
it, the docs don't promise to keep doing so, so be safe.
</content>
</entry>
</feed>
