Add notmuch_message_get_thread_ids function