Hi all, this lengthy series fixes replies to messages with multiple Cc: headers. Daniel reported the problem in id:87d1ngv95p.fsf@alice.fifthhorseman.net. Lots of refactoring is required to switch to using more GMime functions in the reply code. This is v2 of the series in id:cover.1466284726.git.jani@nikula.org. BR, Jani. Jani Nikula (14): test: add known broken test for reply to message with multiple Cc headers cli/reply: push notmuch reply format abstraction lower in the stack cli/reply: reuse show_reply_headers() in headers-only format cli/reply: unify reply format functions cli/reply: reorganize create_reply_message() cli/reply: make references header creation easier to follow cli/reply: reuse create_reply_message() also for headers-only format cli/reply: reduce the reply format abstractions cli/reply: use dedicated functions for reply to mapping cli/reply: check for NULL list first in scan_address_list() cli/reply: return internet address list from get header funcs cli/reply: pass internet address list to munge detect cli/reply: pass gmime message to munge detection cli/reply: only pass gmime message to add recipients to reply message notmuch-reply.c | 435 +++++++++++++++++++++-------------------------------- test/T220-reply.sh | 24 +++ 2 files changed, 192 insertions(+), 267 deletions(-) -- 2.1.4