- 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);