From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MG8WO0ca2GSkIgAASxT56A (envelope-from ) for ; Sun, 13 Aug 2023 01:48:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CG5AOkca2GRNXQEAG6o9tA (envelope-from ) for ; Sun, 13 Aug 2023 01:48:23 +0200 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 DF25341280 for ; Sun, 13 Aug 2023 01:48:22 +0200 (CEST) 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=1691884103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to: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=9fv0VKFjCZh1KxdYXepK08IqpkgAyQ+OuYgFbhMQcH0=; b=QciES6xWdIMamxEhs4uTI2KG3bMddetF5IL0I5RUTXePqRvf9Wg3PAtGny3mzgxTdcerfq rUFchsuU+izfInzs7oW4EXPfHEoU9n8ULFoaTWjasVJBFtf6kpg98W6zpnyktUEbaaIGwB oyyJK3/8xQwwp6LeeSHlSbQnAKpSaU3rct6kMrQHJoPczy6Bgr+yICzSYpmk6uqBsOPWJH LYmsUKCiTNyq7CvMKaQoy6zZJMjbvfSHWchQLXcYRyQOr8YgGsNRfwtOb2CZXlkWm7yffQ IpVBRXluYreCRwwOOciImfZsCbhijU3QCHvsAIxQlYsUuWMQ0Z+aKKD7ju9vwA== 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=1691884103; a=rsa-sha256; cv=none; b=WF5A1hFv80iL+oV7uBPo+4C7KB7nODcaUXpFfrhPhTtl5hpYMuSKt5LWPGlOtaFocwOpNA cpStZEjWAKDX6VTy/UHRk7WCiCcR6gdL5W6Hso/29xnHwXY8CHgherD4ZLmQKRy2xB7pSN cCB/CkBhgzM7iZK+RI/xshb0DEiM7MOGda6H7GM6fI7hox/x98vF/n6LDmg55N6khX784E fve0d6bPhoL4I6vvvT6qeO7dLxv+5/OO1zDPdOLdGkkNrlItoVUIVGoUPQS18N98V0ppri PeLIzS3W/ffi0KsYRsiwO+/C0xQ1rWTHueN1Aksn71FXDu3iIEzQKCJTLPmSrg== Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 127E65F707; Sat, 12 Aug 2023 23:48:20 +0000 (UTC) Received: from phubs.tethera.net (phubs.tethera.net [IPv6:2607:5300:60:3a9d::1]) by mail.notmuchmail.org (Postfix) with ESMTPS id 5EC4A5F5E2 for ; Sat, 12 Aug 2023 23:48:17 +0000 (UTC) Received: from tethera.net (fctnnbsc51w-159-2-210-253.dhcp-dynamic.fibreop.nb.bellaliant.net [159.2.210.253]) by phubs.tethera.net (Postfix) with ESMTPS id 7DF5C180172; Sat, 12 Aug 2023 20:48:15 -0300 (ADT) Received: (nullmailer pid 804244 invoked by uid 1000); Sat, 12 Aug 2023 23:48:14 -0000 From: David Bremner To: Lars Kotthoff , notmuch@notmuchmail.org Subject: Re: Query by how many messages are in thread? In-Reply-To: <169186241515.1374.9358163915320675037.kukulkan@sakura> References: <169186241515.1374.9358163915320675037.kukulkan@sakura> Date: Sat, 12 Aug 2023 20:48:14 -0300 Message-ID: <874jl3960x.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 4U3KZMAFUO5PFKUG4OTNRR7UGOAOYGCH X-Message-ID-Hash: 4U3KZMAFUO5PFKUG4OTNRR7UGOAOYGCH 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 X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE X-Migadu-Queue-Id: DF25341280 X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: -0.38 X-Migadu-Spam-Score: -0.38 X-TUID: hl9LEYpCUQke Lars Kotthoff writes: > Hi all, > > I was wondering whether there's a way to query threads that have a certain number of messages, in addition to matching the rest of the query. I'm trying to find threads where I have sent an email (easy enough by just matching "from") but where I haven't gotten a reply yet (i.e. there's only one message in the thread), so that I know to follow up. If you can think of another way of doing this, that would be great as well! > > Thanks, > We had some discussion about a proposed method to do this https://nmbug.notmuchmail.org/nmweb/show/20230213122631.2088558-1-david@tethera.net Unfortunately my initial attempt didn't distinguish between real messages in the database and so called "ghost messages" generated by (potentially spurious references). This generates some false positive for threads which seem large, but are not.