cli/reply: return internet address list from get header funcs
authorJani Nikula <jani@nikula.org>
Tue, 13 Sep 2016 17:14:19 +0000 (20:14 +0300)
committerDavid Bremner <david@tethera.net>
Sat, 17 Sep 2016 12:11:07 +0000 (09:11 -0300)
commit536b1f9df989915161024d2334e206f538d59f9b
tree424fa9180030d3311d9250a83f7ca7a0b51b52bd
parentca82d481a1040ed3a47ad9c5e7cf7ec16e5e2ced
cli/reply: return internet address list from get header funcs

Pass in GMimeMessage to simplify To/Cc/Bcc headers. We'll eventually
remove the notmuch message passing altogether, but keep both for now
to not make too big changes at once.

Getting the headers from GMimeMessage using GMime functions fixes the
error on duplicate Cc headers reported by Daniel Kahn Gillmor
<dkg@fifthhorseman.net> in id:87d1ngv95p.fsf@alice.fifthhorseman.net.

Get rid of an intermediate function.

The small annoyance is the ownership differences in the address lists.
notmuch-reply.c
test/T220-reply.sh