Re: [PATCH] How to improve the mail handling workflow?
authorJameson Rollins <jrollins@finestructure.net>
Sun, 14 Nov 2010 19:13:26 +0000 (14:13 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:29 +0000 (09:37 -0800)
8c/de56692e9d3afb68d03ffa373ab387e0741f8d [new file with mode: 0644]

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