--- /dev/null
+Return-Path: <eg@gaute.vetsj.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id DE9C26DE0B4B\r
+ for <notmuch@notmuchmail.org>; Sun, 28 Feb 2016 04:36:30 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.484\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.484 tagged_above=-999 required=5 tests=[AWL=0.236,\r
+ DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7,\r
+ RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id spg3FcmwYIfK for <notmuch@notmuchmail.org>;\r
+ Sun, 28 Feb 2016 04:36:28 -0800 (PST)\r
+Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com\r
+ [209.85.217.182])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 3589A6DE0924\r
+ for <notmuch@notmuchmail.org>; Sun, 28 Feb 2016 04:36:28 -0800 (PST)\r
+Received: by mail-lb0-f182.google.com with SMTP id bc4so66826150lbc.2\r
+ for <notmuch@notmuchmail.org>; Sun, 28 Feb 2016 04:36:28 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=gaute-vetsj-com.20150623.gappssmtp.com; s=20150623;\r
+ h=date:from:subject:to:references:in-reply-to:user-agent:message-id\r
+ :mime-version:content-transfer-encoding;\r
+ bh=NbX33UFGN2X5ZKPUVFs7EcLi8YHmdA1FfrFt8z/cMvE=;\r
+ b=maXA5JH8diRScKBWJdhhzZnsJAi5VZYBUmKIEUnX3kX2w66546pm0IULypTBTE0Mjn\r
+ APoNuf2cq5p22MEyp2w8q8Y4Yvn4WIfC6v+vJ9gZ7OCHLXib/m4m5bVrR3DSQY9lruuV\r
+ pcUeWTNQkBH5762yR36/JYpN/6o5hPVsvnuFRKFOW5bcQjxqvWPX1Y6EgxYKMLHOgTv3\r
+ oEwnrFiww8zucUJqJk64UVPdma4y3AKiS4DGpf36LuYLFyCHqp6crCE4WZnkIO9PTt7i\r
+ ZWdEPRAl/t4kN9e1jfzvp5zMN6xZIqRF9nOFJX4WHCoOgZfbPzaqGLd16d222iHhgV7n\r
+ m03A==\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:date:from:subject:to:references:in-reply-to\r
+ :user-agent:message-id:mime-version:content-transfer-encoding;\r
+ bh=NbX33UFGN2X5ZKPUVFs7EcLi8YHmdA1FfrFt8z/cMvE=;\r
+ b=Pkt5xzqSnv12At6hCkggqdUQmC3FN3/EUKTnCrBE6yFVinOTJYd3yJwkQw8pEM3vyB\r
+ VHQsCMAUHZQmOuX2jzQ/WOGxisb4CJYuqgePJYhHdfBX6dCYmqU++z0K/rjUjIAQTyW2\r
+ bl1JMzDdhbTSq9OB9QDNGKxReVEIOwdkuuAWUPNXaZUjirsdFW03Cqd/TOaMl1uC3ewc\r
+ +MNqvb1oJG2A7dGgZOLef8m8i9DsUXydMxYd1rWUKNmXPcfefEGIwp61c0ikXLTkO6PF\r
+ 4iohpudtwzC0di0hb/B7tv+7+6wcNKrXA3ADrurWDDn53885CXIhEoZHP/MvuQWWs7u0\r
+ 9Tpw==\r
+X-Gm-Message-State:\r
+ AD7BkJKYpydynQq0J0oFvynPpKiN2XSEEOoFFhrPZqmKscFO2dJ2ZT/OokFLWfZeeM/GDg==\r
+X-Received: by 10.112.170.103 with SMTP id al7mr3793660lbc.72.1456662986586;\r
+ Sun, 28 Feb 2016 04:36:26 -0800 (PST)\r
+Received: from localhost (c6878BF51.dhcp.as2116.net. [81.191.120.104])\r
+ by smtp.gmail.com with ESMTPSA id e6sm3101076lbc.15.2016.02.28.04.36.25\r
+ for <notmuch@notmuchmail.org>\r
+ (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sun, 28 Feb 2016 04:36:25 -0800 (PST)\r
+Date: Sun, 28 Feb 2016 12:36:23 +0000\r
+From: Gaute Hope <eg@gaute.vetsj.com>\r
+Subject: Re: need to call notmuch_threads_get (..) to actually move iterator\r
+To: notmuch@notmuchmail.org\r
+References: <1456315381-astroid-1-8aih8mdal8-11676@strange>\r
+In-Reply-To: <1456315381-astroid-1-8aih8mdal8-11676@strange>\r
+User-Agent: astroid/v0.5-71-g4efc3da1 (https://github.com/gauteh/astroid)\r
+Message-Id: <1456662798-astroid-2-5i0e2mz9gz-1529@strange>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8; format=flowed\r
+Content-Transfer-Encoding: quoted-printable\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 28 Feb 2016 12:36:31 -0000\r
+\r
+Gaute Hope writes on February 24, 2016 13:08:\r
+> Hi,\r
+>=20\r
+> it seems to be necessary to actually call notmuch_threads_get (threads)\r
+> to move the thread iterator from a query object, just calling\r
+> notmuch_threads_move_to_next (..) is not enough:\r
+\r
+A test-case demonstrating this (for the 'astroid' code-base) is located\r
+here: https://github.com/gauteh/astroid/blob/ti-stateless-query/test/test_n=\r
+otmuch.cc#L66\r
+\r
+At the moment, this test depends on the rest of the astroid test-suite,\r
+but it may be useful as a demonstration or skeleton for a notmuch\r
+test-case anyway.\r
+\r
+Regards, Gaute\r
+\r
+=\r