From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8+JQK6wweWEjKgEAgWs5BA (envelope-from ) for ; Wed, 27 Oct 2021 12:57:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id MEQzJqwweWEEZwAAbx9fmQ (envelope-from ) for ; Wed, 27 Oct 2021 10:57:48 +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 CAF92F22E for ; Wed, 27 Oct 2021 12:57:47 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 6452D1F590; Wed, 27 Oct 2021 06:57:42 -0400 (EDT) X-Greylist: delayed 303 seconds by postgrey-1.36 at nmbug; Wed, 27 Oct 2021 06:57:36 EDT Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by mail.notmuchmail.org (Postfix) with ESMTPS id 453A51F58F for ; Wed, 27 Oct 2021 06:57:36 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635332254; bh=UUFpZRUrMxUpm8Rpm5VMTjscSGqtkCRk58AWLuj0Yuw=; h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:References:Date; b=TqHmf7Li1qT2X7LUAg/Hms55KPPJZT7uPU8gNLnHj6f1FcUNpVbHihQ677ZWXC8aE AflQ+wmlt9Hj8r8B7jBWVQer43nkkYvtPaaC4xrlFqohLeCcA4Ke+Ksv8hTHZqwf9o XDmYOhCjsAPRkIMSD0nz6tS1c5LnkDX2hQJqQaJ0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost ([79.140.179.140]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MtOGU-1mwvRZ24S6-00uqYe; Wed, 27 Oct 2021 12:52:31 +0200 From: Gregor Zattler To: notmuch@notmuchmail.org Subject: Re: notmuch-emacs: Add option to set -exclude=false in notmuch search/tree In-Reply-To: <87ilxlxsng.fsf@kisara.moe> References: <87ilxlxsng.fsf@kisara.moe> Mail-Followup-To: notmuch@notmuchmail.org Date: Wed, 27 Oct 2021 12:52:27 +0200 Message-ID: <875yti2104.fsf@no.workgroup> MIME-Version: 1.0 X-Provags-ID: V03:K1:WBj7HQZmdNOaZlPHBgtjw7a/Qg0M3IaS2UMXYWpttRmuxwh7SoQ qjd/Mq7EK9HpdsoUGpzU7fZ8kSvscMOG9vgfjVRt2tQ/oqeTG6IOP72Laydln6QQxZLgE3S zphd8Dh1SjET/M458ejzAJvq8ZLnHv8WNlF+7nsb6yFgxgkriqMvXg9+zlgvEYWjXw6q5yb oOtsJhqDoGzfsQx7I5KsA== X-UI-Out-Filterresults: notjunk:1;V03:K0:XKLe3AwdnG4=:yIpF940M1h2bjsQW5mKDVm 9QOeS4riwYSYFCxFp+1h0/hbfWg5as1goaZScdjOT+6Vt4PttcOqbT3A8OGE/ydRfCknzLQJB yMIX1lpfqcS9bCyXB69/DgGwpVgtg4IpsgLA7VpqdAxWiK4DzqvTP+Vl5zDlg1arpQliCzu/M DyGfK7V7ywURpKyINrQcmkJmCiIFvXTk15rEAewqE/JkSg4ayBwoFg89twDjCKowSGlFqVcYH miaoygThsOCfplTpgT6gW8qfE48mNp6horSw0HbpEtTKHc+riC+mtri8r1Y7hqhc+WB2Dxtbk 2cRzKmv6DPEVNleK2T8RJBQ+7OyIMzoVDS9K05A2tRglr4bL8anjM0Z2ATVJJUuZvHDa+w199 WSURLfzSm8kGZLPA7C1qdIFOcbf9hl9JNifi42EHLjGI9OovY3H0WPs7rQ40V/vodB3sHc0Ks 2sjvKkWHThkHfmfUlqEEDKplPvjxGer1IPfinE9xlAVNK7lO39R0ajuSCUnAqiai41oR4Vz0b HRgle6vd+R/P/Lx/lNgJGmMojRGyqr5LT6WBWbyIF30PEBgI1R5SnGv0jZqBUKEZHr0IeFsrb b9ocDJUHHeFrajCKmIO27qpaWzq+6E1+rpkVf7JpRAIKQOCjO+vNK5AQTTG/BHkOKoSa9OZTg CgDFMLrHHa/RKNSHGm57uaO49Wd1uV4idbRtRauB3ARfCm2LXT22d9V1v0eocsvT1z4QXtPEC sppzY/YKp9uVfWzUOTbmct5Ed6SbNNpUOfUTZohUR5dnBVTZpG9QvvUZ82xni+PM3wrOYdpdE rR51oBFcyONd7GZsE0MPJdvZR/3K9cTIcOUwkRAlfdAv2zSp4UvxEjROu4M1uMPLhSnrpEBr2 5xUbBqwe8i3Ry0QOAM1GjoEpoV4PCU0IDB9+FMznycGVyUxTGCYM8mH3Wmp9kjdKiTAoVwlmo eCVVghQ2GOr93mj4Uqi50rRN+2yl4EF6Xko8SBYKyBLqr90VFRATtkEb++ZVipZtjLZyvl2vM f8dCSosOPT6kE5nlSsXUIAoGlmO7R645/zuZRFy3TjBpTQVNh5FdQQpghpusIePSYjkBySbX2 OUmMoWpbon1Vbg= Message-ID-Hash: AGCKQLGFB27R6MBIVM7GLA6YYBSOBV6H X-Message-ID-Hash: AGCKQLGFB27R6MBIVM7GLA6YYBSOBV6H X-MailFrom: telegraph@gmx.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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635332268; 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:dkim-signature; bh=XvrZkvDNx4gCEzAXQlhMME0HUBDcxA8iZoxW+yTq8Mg=; b=sKCwj22wpMCcqk1mlAWQuHrbdA1WYXiCZ3lit1yoYDjh0DMb/FTJT7VBFPV3A8Pmco0ay+ NUtGb9ZrrrVlomL65q7LwhB466mpEnDQhVAy4kVHSZt8VFwMQ1w55AY9LPap6e6jjBVsFo zYHsLr6mn0c+46yAXDn7jeaxpsmP2d+EBeSCKBDJE+O6II4+D1xZAwpIKw6ICxrcwCRQM7 rUgWQv9X5ermO+mv5gtcpxJ9LQZe9/Mf6nweKlXIUNV2YxaP2RtPr4rOpNwk6YiShYpnw6 XaHFLjHnthltQePflAqIqaR3q+JZIr3uY9rjeUoHf56xWYFHO7M915RiAzFFyA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635332268; a=rsa-sha256; cv=none; b=XncsAiqxYUC/VwzbXkMM0AioIGSpIJkkcik+EngyyG/wD7GBhFQI4v02UgE/9Rdql/WAVU 1tFGenVpVktgVrXx3UA5+ZKQWe7FkqOEq2N1eF1OgVmL/4Zjo0jP4kP3KOiWQiuHCJoQxc 3pQA08UAjODcjRveNiop9CnuzSUwCHfK7IoYMIhw6bJ5LkTBtFpq4gAQAXfMqgiw30zEDj AzBWTvmx2JEESKlICUNwpCrFfnT0dcavGd22E+2zUxQXipW3uvHBGH5ws6tYN4LulM+4Mc ABKPKIDDpNgkntX2TCRFsUmwsxzX3pVcvTcU+vzswvmLLJHUIc/2/+Gp8BoIXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmx.net header.s=badeba3b8450 header.b=TqHmf7Li; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.net (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: -0.82 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmx.net header.s=badeba3b8450 header.b=TqHmf7Li; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.net (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: CAF92F22E X-Spam-Score: -0.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1Jk0TlkVvDpa Hi Mohsin, notmuch users, * Mohsin Kaleem [2021-10-25; 12:14]: > 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. in absence of these options I have query.all=(is:spam OR NOT is:spam) AND (is:deleted OR NOT is:deleted) search.exclude_tags=deleted;spam; configured for notmuch. Therefore I'am able to do searches like notmuch count -- 'query:all AND path:spam-old/**' This also works in notmuch-emacs. It's usefulness hinges on having only a static set of a few excluded tags. Ciao; Gregor -- -... --- .-. . -.. ..--.. ...-.-