lib: refactor _notmuch_messsage_file_get_combined_header