From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 3C8DB6DE0B26 for ; Sun, 28 Feb 2016 04:59:59 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.498 X-Spam-Level: X-Spam-Status: No, score=-0.498 tagged_above=-999 required=5 tests=[AWL=0.222, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ct3TfQdxj_6X for ; Sun, 28 Feb 2016 04:59:56 -0800 (PST) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by arlo.cworth.org (Postfix) with ESMTPS id 72AA86DE0B4B for ; Sun, 28 Feb 2016 04:59:56 -0800 (PST) Received: by mail-lf0-f49.google.com with SMTP id j186so2226916lfg.2 for ; Sun, 28 Feb 2016 04:59:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaute-vetsj-com.20150623.gappssmtp.com; s=20150623; h=date:from:subject:to:references:in-reply-to:user-agent:message-id :mime-version:content-transfer-encoding; bh=g1BB3gQjd97r9lVY7QqRNrBw1tOCsbLACfaheNjI3yY=; b=hMeCBqVQ55WbCBykMZt7fZoQnB2E6ZCyEUDlDX0n5u9wdAiMtHwTlrqcDznjMByqWQ 6B59+siiDkC0n7TIoMKLMDXUbUMdQxZxJo1va4lNg0F32YVbskVsXGguGfRRJL9Gruhw OwYWo9aWiq4XvBiAqt/4s3HXXwdMbpK07t5jnAixL5TWfFHT3INVB5ADjk4ilgKZw++J qA8rZkss7QpoQdjGT1ydqMDMVjiEMgXy/ghW1mrYnem8kpI653qOGq6hUS4tWY2c7tV+ 8g99sCaLK77BmklvN9UuOV9v1ijljpqj5oqhNwWTzSNq50etGDlrrD/HqdIRmSyIyXpl Hlew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:subject:to:references:in-reply-to :user-agent:message-id:mime-version:content-transfer-encoding; bh=g1BB3gQjd97r9lVY7QqRNrBw1tOCsbLACfaheNjI3yY=; b=TR9rRgjYVnzdFdRk5QCcKmB8IscWzcRn72xZzBnNQfNlDbCjaKbBeePAKpsfdPIZEf nLbLRuXIzsNAF6fs47O5jJqOzWqrKLSwklSSlmyynW2VhvJySXlWJQJiNSPFU3Xnwxc8 z35WHgEnm4Fv2dw/E4PMh/55nhj9ncbSaMccFgm3tF+/r4NuhtiuzqZEwiGVMEI20ax9 KRJQPQZTFaXezwuUySgsSeFweAkTO7sQaqGS7bD+2c65J9LbqLDj0DesoMImiPOXGsFA 1dnQIUpl6gE2BDAao0iWtZucEe/fhqov2M8raRvVJHuCs8NxJYH79T6+es7mndONN3H6 04bg== X-Gm-Message-State: AD7BkJKIN2mmjB9Dd2XiyOPNMzrpLES82n0T9OIH4BsOQLRP3TH/QJ7AAs8K9So+L53iOw== X-Received: by 10.25.149.145 with SMTP id x139mr3147103lfd.141.1456664394921; Sun, 28 Feb 2016 04:59:54 -0800 (PST) Received: from localhost (c6878BF51.dhcp.as2116.net. [81.191.120.104]) by smtp.gmail.com with ESMTPSA id p124sm3142606lfe.31.2016.02.28.04.59.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Feb 2016 04:59:53 -0800 (PST) Date: Sun, 28 Feb 2016 12:59:52 +0000 From: Gaute Hope Subject: Re: need to call notmuch_threads_get (..) to actually move iterator To: notmuch@notmuchmail.org References: <1456315381-astroid-1-8aih8mdal8-11676@strange> <1456662798-astroid-2-5i0e2mz9gz-1529@strange> In-Reply-To: <1456662798-astroid-2-5i0e2mz9gz-1529@strange> User-Agent: astroid/v0.5-72-gccc46dbb (https://github.com/gauteh/astroid) Message-Id: <1456664193-astroid-0-qz0ivb5zpk-17424@strange> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Feb 2016 12:59:59 -0000 Gaute Hope writes on February 28, 2016 13:36: > Gaute Hope writes on February 24, 2016 13:08: >> Hi, >>=20 >> 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: >=20 > 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 >=20 > 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. Disregard that, my test-case was erroneous.=20 -Gaute =