const char *thread_id;
notmuch_message_results_t *message_results;
notmuch_message_t *message;
- notmuch_tags_t *tags;
- const char *tag;
GHashTable *seen;
thread_results = talloc (query, notmuch_thread_results_t);
g_ptr_array_add (thread_results->threads, thread);
}
- for (tags = notmuch_message_get_tags (message);
- notmuch_tags_has_more (tags);
- notmuch_tags_advance (tags))
- {
- tag = notmuch_tags_get (tags);
- _notmuch_thread_add_tag (thread, tag);
- }
+ _notmuch_thread_add_message (thread, message);
+
+ notmuch_message_destroy (message);
}
g_hash_table_unref (seen);