<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/notmuch-dump.c, branch 0.31.1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.31.1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.31.1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2020-04-13T20:14:50Z</updated>
<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>
<entry>
<title>notmuch-dump.c: Fix output file being closed twice</title>
<updated>2019-07-23T22:20:18Z</updated>
<author>
<name>Ralph Seichter</name>
<email>abbot@monksofcool.net</email>
</author>
<published>2019-07-23T20:48:23Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=17806ecc955ce0375146ea1df51eae061a72bef8'/>
<id>urn:sha1:17806ecc955ce0375146ea1df51eae061a72bef8</id>
<content type='text'>
Fixed: If the output file for a dump was non-writeable, gzclose_w()
was called twice on the output file handle, resulting in SIGABRT.
</content>
</entry>
<entry>
<title>cli: run uncrustify</title>
<updated>2019-06-14T10:41:27Z</updated>
<author>
<name>uncrustify</name>
<email>david@tethera.net</email>
</author>
<published>2019-06-13T10:31:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=33382c2b5ba2537952a60ea378feff36961e4713'/>
<id>urn:sha1:33382c2b5ba2537952a60ea378feff36961e4713</id>
<content type='text'>
This is the result of running

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

in the top level source directory
</content>
</entry>
<entry>
<title>cli: convert notmuch_bool_t to stdbool</title>
<updated>2017-10-10T01:24:02Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-10-07T08:44:04Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0f314c0c99befea599a68bea51d759b4133efef6'/>
<id>urn:sha1:0f314c0c99befea599a68bea51d759b4133efef6</id>
<content type='text'>
C99 stdbool turned 18 this year. There really is no reason to use our
own, except in the library interface for backward
compatibility. Convert the cli and test binaries to stdbool.
</content>
</entry>
<entry>
<title>cli: use designated initializers for opt desc</title>
<updated>2017-10-05T01:00:42Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-10-01T20:53:11Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4a6721970a42a9f86149fb5d395d1001fed2d305'/>
<id>urn:sha1:4a6721970a42a9f86149fb5d395d1001fed2d305</id>
<content type='text'>
Several changes at once, just to not have to change the same lines
several times over:

- Use designated initializers to initialize opt desc arrays.

- Only initialize the needed fields.

- Remove arg_id (short options) as unused.

- Replace opt_type and output_var with several type safe output
  variables, where the output variable being non-NULL determines the
  type. Introduce checks to ensure only one is set. The downside is
  some waste of const space per argument; this could be saved by
  retaining opt_type and using a union, but that's still pretty
  verbose.

- Fix some variables due to the type safety. Mostly a good thing, but
  leads to some enums being changed to ints. This is pedantically
  correct, but somewhat annoying. We could also cast, but that defeats
  the purpose a bit.

- Terminate the opt desc arrays using {}.

The output variable type safety and the ability to add new fields for
just some output types or arguments are the big wins. For example, if
we wanted to add a variable to set when the argument is present, we
could do so for just the arguments that need it.

Beauty is in the eye of the beholder, but I think this looks nice when
defining the arguments, and reduces some of the verbosity we have
there.
</content>
</entry>
<entry>
<title>Merge branch 'release'</title>
<updated>2017-06-01T10:54:38Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2017-06-01T10:54:38Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1ec634461ea25d87cc16dbeb1318f8e30a07c9f1'/>
<id>urn:sha1:1ec634461ea25d87cc16dbeb1318f8e30a07c9f1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cli/dump: don't include tags when not asked for</title>
<updated>2017-06-01T10:07:32Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2017-05-08T01:44:23Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=11fda0bf2fd74b227d15a2bb6b36a8ce6403c8e9'/>
<id>urn:sha1:11fda0bf2fd74b227d15a2bb6b36a8ce6403c8e9</id>
<content type='text'>
Add in the analogous test for tags that is given for properties a few
lines below.
</content>
</entry>
</feed>
