Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 40801431FC7 for ; Sun, 7 Dec 2014 06:28:52 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jqcZT9dFdj-f for ; Sun, 7 Dec 2014 06:28:47 -0800 (PST) Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 19E68431FC0 for ; Sun, 7 Dec 2014 06:28:42 -0800 (PST) Received: by mail-wg0-f41.google.com with SMTP id y19so4339609wgg.14 for ; Sun, 07 Dec 2014 06:28:40 -0800 (PST) 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-type :content-transfer-encoding; bh=gqbkvg1YMy84hdXxt0TIGCy9WSu7h0fN2w9eqckxmNw=; b=K6nMgxsqm8o3CPHE7ueDkeU8QOAqtt6s40ORojRKdjwUwtd1/gf2mm/9kxNeYoZf6h Phvp+Ue7p/kG1Abw692oigCEUSEpMzQoaw1Y+ycn+isjLLU6CquMN5fBhPtBgblshFak PHFonzgtOQBpXvS8mRXfC7SKt7DilZkjReId7u3P+jdvPnURanWXYesTL2y19w5b7hHK LoU7wR+iqI4S+wNQC0ZA/N9FKRErteWHKO/LPw61vCcTk0hGGLQy8IgUYWSZ50JEexv8 vI7Xl9j1jv62aCUSUN3LR+p/7qvWfdfRAHdOk+kORHWzHAtFWsFwM21UBmcbed/tt7o1 TpiQ== X-Gm-Message-State: ALoCoQnBOqjhtgWlOhlM/orixDLQPR/wtybhaVlDUXlxnuHRSNGILZ8nwZ9YALgzFMmUr8EHnznR X-Received: by 10.194.83.42 with SMTP id n10mr37313111wjy.133.1417962520854; Sun, 07 Dec 2014 06:28:40 -0800 (PST) Received: from localhost (216.89-20-249.enivest.net. [89.20.249.216]) by mx.google.com with ESMTPSA id eu15sm5944242wid.18.2014.12.07.06.28.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Dec 2014 06:28:40 -0800 (PST) Date: Sun, 07 Dec 2014 14:29:21 +0000 From: Gaute Hope Subject: Re: notmuch_query_add_tag_excluded and notmuch_query_search_threads To: David Bremner , notmuch@notmuchmail.org References: <1417905319-astroid-0-i86er7iwg5-10728@strange> <87388rfzhw.fsf@maritornes.cs.unb.ca> <1417958519-astroid-0-ydniq6pte2-8575@strange> <87wq63ef9s.fsf@maritornes.cs.unb.ca> In-Reply-To: <87wq63ef9s.fsf@maritornes.cs.unb.ca> User-Agent: astroid/vv0.1-10-g39dd8180 (https://github.com/gauteh/astroid) Message-Id: <1417962498-astroid-0-zqj7j2s0ov-9575@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.13 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, 07 Dec 2014 14:28:53 -0000 Excerpts from David Bremner's message of December 7, 2014 14:54: > Gaute Hope writes: >=20 >> >> I also did an notmuch_query_count_threads (query) as illustrated >> above, this returns 0 and also results in the erroneous behavior >> below. Your code works as expected without the _count_threads() call. >=20 > I think there's a documentation error; notmuch_query_count_threads is > destructive. As to why your's returns 0 that's still a mystery to me. I > get 84, which matches the output from "notmuch search". >=20 Ok, that explains it. You are right - I mixed up, the count is correct. regards, gaute =