lib: refactor _notmuch_messsage_file_get_combined_header
authorDavid Bremner <david@tethera.net>
Wed, 17 May 2017 10:18:55 +0000 (07:18 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 15 Jul 2017 00:23:52 +0000 (21:23 -0300)
commit439c5896b6ec4306d428101bbf59c07288e96c71
tree0c2b133852602cc7e7a2cd56a76df077b64b2887
parentc040464a7c8f339d15f691113b8f5fd901229bcb
lib: refactor _notmuch_messsage_file_get_combined_header

We need to rewrite the loop for gmime-3.0; move the loop body to its
own function to avoid code duplication.  Keep the common exit via
"goto DONE" to make this pure code movement.  It's important to note
that the existing exit path only deallocates the iterator.
lib/message-file.c