thread_id, NULL,
(void **) &thread))
{
+ const char *subject;
+
thread = _notmuch_thread_create (query, query->notmuch,
thread_id);
+ subject = notmuch_message_get_header (message, "subject");
+
+ _notmuch_thread_set_subject (thread, subject);
+
g_hash_table_insert (seen, xstrdup (thread_id), thread);
g_ptr_array_add (thread_results->threads, thread);
tag = notmuch_tags_get (tags);
_notmuch_thread_add_tag (thread, tag);
}
+
+ notmuch_message_destroy (message);
}
g_hash_table_unref (seen);