From 5ad62b4fe820bf526d595970f9b5dd8c1647b1ba Mon Sep 17 00:00:00 2001 From: Gaute Hope Date: Sun, 28 Feb 2016 12:36:23 +0000 Subject: [PATCH] Re: need to call notmuch_threads_get (..) to actually move iterator --- 7d/ae3638c5eb5280b91208ca8d82ac95d84e86f4 | 97 +++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 7d/ae3638c5eb5280b91208ca8d82ac95d84e86f4 diff --git a/7d/ae3638c5eb5280b91208ca8d82ac95d84e86f4 b/7d/ae3638c5eb5280b91208ca8d82ac95d84e86f4 new file mode 100644 index 000000000..c5acc70e0 --- /dev/null +++ b/7d/ae3638c5eb5280b91208ca8d82ac95d84e86f4 @@ -0,0 +1,97 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id DE9C26DE0B4B + for ; Sun, 28 Feb 2016 04:36:30 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.484 +X-Spam-Level: +X-Spam-Status: No, score=-0.484 tagged_above=-999 required=5 tests=[AWL=0.236, + 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 spg3FcmwYIfK for ; + Sun, 28 Feb 2016 04:36:28 -0800 (PST) +Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com + [209.85.217.182]) + by arlo.cworth.org (Postfix) with ESMTPS id 3589A6DE0924 + for ; Sun, 28 Feb 2016 04:36:28 -0800 (PST) +Received: by mail-lb0-f182.google.com with SMTP id bc4so66826150lbc.2 + for ; Sun, 28 Feb 2016 04:36:28 -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=NbX33UFGN2X5ZKPUVFs7EcLi8YHmdA1FfrFt8z/cMvE=; + b=maXA5JH8diRScKBWJdhhzZnsJAi5VZYBUmKIEUnX3kX2w66546pm0IULypTBTE0Mjn + APoNuf2cq5p22MEyp2w8q8Y4Yvn4WIfC6v+vJ9gZ7OCHLXib/m4m5bVrR3DSQY9lruuV + pcUeWTNQkBH5762yR36/JYpN/6o5hPVsvnuFRKFOW5bcQjxqvWPX1Y6EgxYKMLHOgTv3 + oEwnrFiww8zucUJqJk64UVPdma4y3AKiS4DGpf36LuYLFyCHqp6crCE4WZnkIO9PTt7i + ZWdEPRAl/t4kN9e1jfzvp5zMN6xZIqRF9nOFJX4WHCoOgZfbPzaqGLd16d222iHhgV7n + m03A== +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=NbX33UFGN2X5ZKPUVFs7EcLi8YHmdA1FfrFt8z/cMvE=; + b=Pkt5xzqSnv12At6hCkggqdUQmC3FN3/EUKTnCrBE6yFVinOTJYd3yJwkQw8pEM3vyB + VHQsCMAUHZQmOuX2jzQ/WOGxisb4CJYuqgePJYhHdfBX6dCYmqU++z0K/rjUjIAQTyW2 + bl1JMzDdhbTSq9OB9QDNGKxReVEIOwdkuuAWUPNXaZUjirsdFW03Cqd/TOaMl1uC3ewc + +MNqvb1oJG2A7dGgZOLef8m8i9DsUXydMxYd1rWUKNmXPcfefEGIwp61c0ikXLTkO6PF + 4iohpudtwzC0di0hb/B7tv+7+6wcNKrXA3ADrurWDDn53885CXIhEoZHP/MvuQWWs7u0 + 9Tpw== +X-Gm-Message-State: + AD7BkJKYpydynQq0J0oFvynPpKiN2XSEEOoFFhrPZqmKscFO2dJ2ZT/OokFLWfZeeM/GDg== +X-Received: by 10.112.170.103 with SMTP id al7mr3793660lbc.72.1456662986586; + Sun, 28 Feb 2016 04:36:26 -0800 (PST) +Received: from localhost (c6878BF51.dhcp.as2116.net. [81.191.120.104]) + by smtp.gmail.com with ESMTPSA id e6sm3101076lbc.15.2016.02.28.04.36.25 + for + (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Sun, 28 Feb 2016 04:36:25 -0800 (PST) +Date: Sun, 28 Feb 2016 12:36:23 +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> +In-Reply-To: <1456315381-astroid-1-8aih8mdal8-11676@strange> +User-Agent: astroid/v0.5-71-g4efc3da1 (https://github.com/gauteh/astroid) +Message-Id: <1456662798-astroid-2-5i0e2mz9gz-1529@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:36:31 -0000 + +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: + +A test-case demonstrating this (for the 'astroid' code-base) is located +here: https://github.com/gauteh/astroid/blob/ti-stateless-query/test/test_n= +otmuch.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 + += -- 2.26.2