cli/reply: push notmuch reply format abstraction lower in the stack
authorJani Nikula <jani@nikula.org>
Tue, 13 Sep 2016 17:14:10 +0000 (20:14 +0300)
committerDavid Bremner <david@tethera.net>
Sat, 17 Sep 2016 11:44:00 +0000 (08:44 -0300)
commit0c5840862e2f8802b2d280dbf77da908d3617b10
treee43a1777d5f070800ce7349367fd073e456e622b
parent36416c74e09d07fe3dfff79900171f15c4671412
cli/reply: push notmuch reply format abstraction lower in the stack

There's quite a bit of duplication, and some consequent deviation,
between the various notmuch reply format code paths. Perform the query
and message iteration in common code, and make the format specific
functions operate on single messages.

There should be no functional changes.
notmuch-reply.c