From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kPtGBbildmGObQEAgWs5BA (envelope-from ) for ; Mon, 25 Oct 2021 14:40:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IK3/ALildmEGFAAA1q6Kng (envelope-from ) for ; Mon, 25 Oct 2021 12:40:24 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 3C5D51C22E for ; Mon, 25 Oct 2021 14:40:22 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 77BFA1F4A5; Mon, 25 Oct 2021 08:40:18 -0400 (EDT) X-Greylist: delayed 424 seconds by postgrey-1.36 at nmbug; Mon, 25 Oct 2021 07:22:28 EDT Received: from mail.kisara.moe (119.ip-51-38-65.eu [51.38.65.119]) by mail.notmuchmail.org (Postfix) with ESMTPS id D69AF1F483 for ; Mon, 25 Oct 2021 07:22:28 -0400 (EDT) Received: from mk-macbook (unknown [194.36.110.250]) by mail.kisara.moe (Postfix) with ESMTPSA id DF485A5EC3 for ; Mon, 25 Oct 2021 13:15:22 +0200 (CEST) From: Mohsin Kaleem To: notmuch@notmuchmail.org Subject: notmuch-emacs: Add option to set -exclude=false in notmuch search/tree Date: Mon, 25 Oct 2021 12:14:59 +0100 Message-ID: <87ilxlxsng.fsf@kisara.moe> MIME-Version: 1.0 X-MailFrom: mohkale@kisara.moe X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 Message-ID-Hash: BOS2MTZWBKGVGO2NM3BDZZWJGCRC5NPY X-Message-ID-Hash: BOS2MTZWBKGVGO2NM3BDZZWJGCRC5NPY X-Mailman-Approved-At: Mon, 25 Oct 2021 08:40:16 -0400 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635165622; 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:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=yY7FWnOu9Xs6koR7XSk24JuUi4OQXb9ViQWvS1aJwuk=; b=XBjwTRgwPwFeIP/0hXI5XUcZ/XFKDvzzlwa7SQ9ZP7iQJ3jlEr4arZy0/7DCIxrLjRBkwf F5f07ma2TlkFuVe2czvlv6jB6Rcqe6Y6lVjCQqISyFeiVKj5YLzogbdFjoGx+7O7zr1D+u ZHEn4Il1vNyDXEvfYhgGZxMZfS+QtHSVxS20yToSnWj1Yaa0BdLlrOuy28NatBcqbyrSGl 3LIhfyTFEtrb5C/Q2Edk+SDLR13QbzWUu3iQRMYZy1thLyk91YIJdM8+mGD9voj3A+o49M Qhu3OKe/HDy/rC3OwQke+VBk36PQObt4B4svPoSHT2G6ghFPk4zjRoNekAFq9A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635165622; a=rsa-sha256; cv=none; b=bJKfs8K9Nwk3UcP3nbnuxOc5P4eQ7IkddPg8wt3XrAU2uC8qqW/BUbMhmoyE0QgjQs52A9 H2r4dPP57K5SDbBH8q0/G6dUSiXTR/bcQtzROXHI7wfTcAyuK2MOZ6NfszRgQoUWU4VGYJ NSuyE5niouN3tjksChLRBTu49+1h2Jdk1yVDvCsTJvNxsgcJT23L+0uTNIW9TwN6qmuKgc nApgNrGZ8rN/WEqTu+VU35B8XBxTjsRzXTKhxT/Tu4cYADID8GBjli8aFPwGY4mf38rwGD hcdxLiCCQPyXGTSdvEHBWnvhLTX+7xt0BBgZfANz3iyMIw1WnIwS0sG6MmGrLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kisara.moe (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.05 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kisara.moe (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 3C5D51C22E X-Spam-Score: -2.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7poHQlmO02Ky At the moment we always use the default value of exclude in calls to notmuch search and notmuch tree. If any of the searched mail is tagged with somethinh that is excluded it isn't shown and if we'd like to check whether this is the case we have to do an exhaustive search over all of our hidden tags to check whether the mail got ommited because it was tagged as such. I suggest we add a new option `notmuch-search-exclude`, which is used to set the default value of the exclude flag in both notmuch-search and notmuch-tree mode, and also to add a new command `notmuch-toggle-exclude` which toggles the value of `notmuch-search-exclude` for the current search. -- Mohsin Kaleem