]> git.cworth.org Git - notmuch/commit
cli/reply: direct all output for text format to gmime stream
authorDavid Bremner <david@tethera.net>
Sat, 27 May 2017 16:51:12 +0000 (13:51 -0300)
committerDavid Bremner <david@tethera.net>
Tue, 30 May 2017 12:01:56 +0000 (09:01 -0300)
commit555e2abe9d838bcf16d7e44f8aea69ded8ffd7f4
tree0bca2af191e18f3b3d150814cb79e0d42dd5f606
parent1e7dbf7abcf58407a5171e9030056f2ff9bec15a
cli/reply: direct all output for text format to gmime stream

Interleaving printfs with writes to the gmime stream worked when the
gmime stream was backed by the FILE *stdout, but that is no longer the
case.  Create one stream and pass it into the two functions where
needed, as well well as replacing printfs with g_mime_stream_printf.
notmuch-client.h
notmuch-reply.c