Re: need to call notmuch_threads_get (..) to actually move iterator

Subject: Re: need to call notmuch_threads_get (..) to actually move iterator

Date: Sun, 28 Feb 2016 11:46:28 -0400

To: Gaute Hope, notmuch@notmuchmail.org

Cc:

From: David Bremner


Gaute Hope <eg@gaute.vetsj.com> writes:

> Hi,
>
> it seems to be necessary to actually call notmuch_threads_get (threads)
> to move the thread iterator from a query object, just calling
> notmuch_threads_move_to_next (..) is not enough:
>

I'm not sure of all the details, but it is true that the
notmuch_threads_get has side effects in the database. In particular it
allocates new thread-ids. So I can easily imagine things failing if you
leave out the call.

d

Thread: