- g_ptr_array_add (thread_results->thread_ids,
- talloc_strdup (thread_results, thread_id));
+ 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);
+ }