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 12:36:23 +0000

To: notmuch@notmuchmail.org

Cc:

From: Gaute Hope


Gaute Hope writes on February 24, 2016 13:08:
> 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:

A test-case demonstrating this (for the 'astroid' code-base) is located
here: https://github.com/gauteh/astroid/blob/ti-stateless-query/test/test_notmuch.cc#L66

At the moment, this test depends on the rest of the astroid test-suite,
but it may be useful as a demonstration or skeleton for a notmuch
test-case anyway.

Regards, Gaute


Thread: