Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 34B2940DDE7 for ; Sun, 14 Nov 2010 11:13:44 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.89 X-Spam-Level: X-Spam-Status: No, score=-1.89 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9FqDGBUmWPcI for ; Sun, 14 Nov 2010 11:13:33 -0800 (PST) Received: from tarap.cc.columbia.edu (tarap.cc.columbia.edu [128.59.29.7]) by olra.theworths.org (Postfix) with ESMTP id AF58A40DDCC for ; Sun, 14 Nov 2010 11:13:33 -0800 (PST) Received: from servo.finestructure.net (cpe-74-66-82-137.nyc.res.rr.com [74.66.82.137]) (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0) by tarap.cc.columbia.edu (8.14.4/8.14.3) with ESMTP id oAEJDTd4000119 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sun, 14 Nov 2010 14:13:30 -0500 (EST) Received: from jrollins by servo.finestructure.net with local (Exim 4.72) (envelope-from ) id 1PHi13-0005gb-PX; Sun, 14 Nov 2010 14:13:29 -0500 From: Jameson Rollins To: Matthieu Lemerre , =?utf-8?Q?C=C3=A9dric?= Cabessa , notmuch@notmuchmail.org Subject: Re: [PATCH] How to improve the mail handling workflow? In-Reply-To: <878w0vet4z.fsf@free.fr> References: <87fwv65zw1.fsf@free.fr> <201011131743.39114.ced@ryick.net> <87iq01gj6c.fsf@servo.finestructure.net> <878w0vet4z.fsf@free.fr> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Sun, 14 Nov 2010 14:13:26 -0500 Message-ID: <87tyjjg1m1.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.68 on 128.59.29.7 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2010 19:13:44 -0000 --=-=-= On Sun, 14 Nov 2010 18:01:48 +0100, Matthieu Lemerre wrote: > Now when you consistently label all your mails, you just don't want to > have unclassified mails. That is what we meant by "mail you can't find". It sounds like this would just as easily be accomplished with a way to search for all messages that don't have any tags. I don't think there's a way to do that at the moment. Carl (on #notmuch) just confirmed that this can only be accomplished by construction the search explicitly. Here's what I came up with: search=$(printf 'not (%s)\n' "$(notmuch search --output=tags '*' | xargs -I'{}' echo tag:'{}' | tr '\n' ' ' | sed 's/ $//' | sed 's/ / or /g')") notmuch search "$search" Someone can probably figure out how to simplify that a bit. I don't think there's an easy way to save a search that's generated on the fly like that. Some elisp magic is probably in order. jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJM4DTWAAoJEO00zqvie6q8O14QALRxqkxOTD/RGUKhr1vWiMdB MbDP7vY3Zm+VU4LfHWwmwHrxZzkDChApIwxOFa9iiy42UztPQeVIcEnUXG9ghK7N XtKdGn8KJ9qtyJS6V56WcXU7KrwZkSBV2KAiUEN5yJKuBObfUBMhIfqnttD5e/Cr w/kSJEAZewFrY1zNuy6Miry6C4Wk2ORrivbdthpKX+iUPrfNXCh72pOrKuQvOcJo wMozJsvVlaQVSPICZR3DEKwDgjgVhYp4eNJsOHgc+69lQDA3YCk/9lLAA+lc0fJ3 gSeAOvjJey/8edE0tEbuw2R+1jwh3nOTxNfkeHhMwiw7rqhQXaSBUwg7gEfj5ztu /+z76zkbIAmxzXzw9xzk+FlvO9bFq6B6Ddaqxr6lDqMnr9aXKP3a/t04OzwFv9/c lWs+o28x25/Qa6fIC7ylV59IpJkHsY/eXb1MqebGDOMDq9fn3TMm5FZ6CxD1rVlg 9gVkF0T/pp4nc73ek8CccFjFbjuE1EmuSjgkjUmRITt+b47IyQ5ISY5jMyG/0AAr r1GYlVzv/l1WAh21zQJJmwQDFNJSsBaZ0b7i5uQ8AmqNy4BSx4UfqTPHqv0aqZRp QJs2tKdawn2tAbVDq7MPpd7sMUp0Jn3LoSvUNf+5KFPjzqPlD4xIfdfPujr+P1DI qr/wvxae3rgHklNAlqea =nWsT -----END PGP SIGNATURE----- --=-=-=--