Simple little bug here made all the tags run together.
notmuch_results_has_more (results);
notmuch_results_advance (results))
{
notmuch_results_has_more (results);
notmuch_results_advance (results))
{
message = notmuch_results_get (results);
fprintf (output,
message = notmuch_results_get (results);
fprintf (output,
notmuch_tags_has_more (tags);
notmuch_tags_advance (tags))
{
notmuch_tags_has_more (tags);
notmuch_tags_advance (tags))
{
if (! first)
fprintf (output, " ");
if (! first)
fprintf (output, " ");