From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8KMsNU2c6mOCBAEAbAwnHQ (envelope-from ) for ; Mon, 13 Feb 2023 21:23:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id ELpfNU2c6mNmDwEAauVa8A (envelope-from ) for ; Mon, 13 Feb 2023 21:23:41 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7055A11653 for ; Mon, 13 Feb 2023 21:23:41 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676319821; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=nZV0W29LJckSWSGpd7Dka2ghCJk3SBacylm50BIBvpU=; b=aIzQx1wvGLnhVOm/O35kzi7gi/9t28rZLXBqqfpNvj4aFsM3Q/lAE7kbRkiGNaF8e49FWx YEW2E6UZL3dBnTIu9PpePHbzLfXpYtPXV7BGk0p5h8CCAu2rRpZEyJbqQhjBeDn0qy1B3H o/yNXRw64NH2vCZiA9A6B00NrUc07j7VrL8Cr6FmanfGB9u6hc45vwe/dWCoNLjY/lfAfR nt5l405rF5F96l91ge/WrVM5Dg19EccLyiSDoFTnZgEvXxyTNnJ0gecjNPZjEwaV/PVWgq OqYF+/6yRyr7qu3s5V6DKDEgUDaWghp+3MD9TzjRBz+0utuebhd1fFajxfC3YA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676319821; a=rsa-sha256; cv=none; b=dDIB+O7Kv6Bf7YuBMajJh4qRX4CQmmU1+8bg5C7hOIMIUtGig7+tkIsr4TVmgqFrvL/Jji zamoEpE1sfIf/SxdRvwJ8XyIHYAsQQOotiGNcnB7kW4CEXuAQ6gbk30WytER7YMX28QDk1 wTiugJsf12w/o/SyfZ7tw1+AHeVZSTDLJrF5VbhQV8bWhcNJ2khry16Mro1JCwnSD27bx2 +NhKjN036RHpb+CZQFVOK5Dq5PHlV4mmuvupRuP0H0Z2v8y9pC1ulXKLrzRFo57hJKSB0G jZqAl/GpH1HCJ3kkec4T2/S8dAP6wmYMCKoES/ynPOonsRSeFhHPefFCSVvycg== Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id DF54A5F3CF; Mon, 13 Feb 2023 20:23:38 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id D3FFE5F35B for ; Mon, 13 Feb 2023 20:23:35 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id E01EC5FB9E; Mon, 13 Feb 2023 15:23:34 -0500 (EST) Received: (nullmailer pid 2178884 invoked by uid 1000); Mon, 13 Feb 2023 20:23:33 -0000 From: David Bremner To: Michael J Gruber Subject: Re: Proof of concept for counting messages in thread In-Reply-To: References: <20230213122631.2088558-1-david@tethera.net> <87lel1pluu.fsf@tethera.net> Date: Mon, 13 Feb 2023 16:23:33 -0400 Message-ID: <87fsb9pb5m.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: ICY36IXCZ2GMHSGSQYQT62HNUXTHK7PI X-Message-ID-Hash: ICY36IXCZ2GMHSGSQYQT62HNUXTHK7PI X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: notmuch@notmuchmail.org X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: X-Migadu-Queue-Id: 7055A11653 X-Spam-Score: -1.70 X-Migadu-Spam-Score: -1.70 X-Migadu-Scanner: scn0.migadu.com List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN X-TUID: qdnBj+KgPtGa Michael J Gruber writes: > > It has 5, as confirmed by the search output and that of `notmuch > count`. But it is matched by `count 115`. > `xapian-check` is happy. (There used to be some issue with additional > thread entries at some point.) > > Michael A simple test to try is % xapian-delve -t G0000000000021229 \ ~/.local/share/notmuch/default/xapian adjusting your database path as needed. If that says "termfreq 115", then something is broken (or at least confusing) about your database (possibly related to the previous issues with threading). In that case I'm curious if there are 115 distinct record numbers. You can find all of the thread-ids attached to a given message with % xapian-delve -1r 267585 ~/.local/share/notmuch/default/xapian | grep ^G where 267585 is an example record number in my database.