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

David Bremner david at tethera.net
Sun Feb 28 07:46:28 PST 2016


Gaute Hope <eg at 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


More information about the notmuch mailing list