From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4IUXGZlC7GGASQEAgWs5BA (envelope-from ) for ; Sat, 22 Jan 2022 18:44:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kHnkEZlC7GF7aQAAG6o9tA (envelope-from ) for ; Sat, 22 Jan 2022 18:44:57 +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 939AC3B696 for ; Sat, 22 Jan 2022 18:44:56 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 9EB635F716; Sat, 22 Jan 2022 17:44:51 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0A7F85E016 for ; Sat, 22 Jan 2022 17:44:48 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 3C60B5FC01; Sat, 22 Jan 2022 12:44:47 -0500 (EST) Received: (nullmailer pid 1573322 invoked by uid 1000); Sat, 22 Jan 2022 17:44:46 -0000 From: David Bremner To: David Bremner , Gregor Zattler , notmuch@notmuchmail.org Subject: Attempt 2 to fix the all-tags display with excludes Date: Sat, 22 Jan 2022 13:44:38 -0400 Message-Id: <20220122174440.1573257-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <878rv74wto.fsf@tethera.net> References: <878rv74wto.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 5LYBSXBM6JTUCIYWQOOQ7O74UEDMCNPV X-Message-ID-Hash: 5LYBSXBM6JTUCIYWQOOQ7O74UEDMCNPV X-MailFrom: bremner@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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642873497; 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=JpFnPl0/+Id7w69wjKr3sOX3gk8JMz1eKC5i+8mlOyQ=; b=QWPXVSdpBWImmNGkzwMgO89Pp+pLRFW1CSSb0yhyiGpHWydsoBqOey1MvErU9xz5BhH3Fo hPFVAdkoiYsVVGOjQk3nPVSm1TDVXdpp2EWhkmNuHnGoagzAlgKSdIl82i6jcABDy3efEl j1ZKFYz28OWiV4vmiSPiufklaBSEy9YKBhJ5pE2QRZUrvXtKk0rsZAoZjDBCSSVEDVteZj UBC1ralRbM35JDL0XB79nHSwU0KZMKHh9raJKLCm+kZjj70hSbkCUoxpg59s48Cj5rg4W4 nQpTmnV1ibyU2O6FpMjotlo3F0VhWk1+XoLwrPuapQY49HF6CzbWgWxqreuYQQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642873497; a=rsa-sha256; cv=none; b=ReAKP4jJUO5GX/NCPv6ucdJ8DiF8hmwhQmqUEf3L2kVFpHyjALo20bZomU4XpUHQwLMLGL +SryZ35i5g6q8Y1KcxYSsN8bRvd7rmmWkH0MH/9qmt3l2T/sAeNRyp1Pqdp8F19GJ/JGVM RQN0dVbCe+r/qUk4wuvgK8YkNkk2GdqhsjaX1gfhcGEH+4KmiBI1OV8pb6menRG7yM7Jv+ QCBkE992FISWVhUNzGVOGSaQX1jK6prvBmyzFZMNO/Uw84JTHrMcEzADAV3i0SNOpnWIi7 TRvMXpNyBAMVozx3tPJT5IJfKvPnfwmkXHe7hCGuREChRELb0LbQbFInhAjujQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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 X-Migadu-Spam-Score: -1.82 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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 X-Migadu-Queue-Id: 939AC3B696 X-Spam-Score: -1.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: XXiwX1LAQyrZ The previous fix applied to master was too broad, and turned of excludes for all counts in notmuch hello. This made the message counts potentially inflated compared to the searches that actually show up for saved searches. This fix treats "all tags" as a special case, but leaves the behaviour of user defined saved searches unaffected.