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