Re: Flat search and threaded views
[notmuch-archives.git] / 91 / 908925fac1a1a4381af50eed8f528237a7c515
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 C02B1431FB6\r
6         for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 14:43:23 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.29\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled\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 X7UPFfRiwg-9 for <notmuch@notmuchmail.org>;\r
16         Mon,  2 Apr 2012 14:43:23 -0700 (PDT)\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
18         [131.215.239.19])\r
19         by olra.theworths.org (Postfix) with ESMTP id 5E7F0431FAE\r
20         for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 14:43:23 -0700 (PDT)\r
21 Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
22         by earth-doxen-postvirus (Postfix) with ESMTP id E710B66E016C;\r
23         Mon,  2 Apr 2012 14:43:22 -0700 (PDT)\r
24 X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
25 Received: from finestructure.net (gwave-213.ligo.caltech.edu\r
26  [131.215.114.213])     (Authenticated sender: jrollins)        by earth-doxen-submit\r
27  (Postfix) with ESMTP id 2149B66E0159;  Mon,  2 Apr 2012 14:43:19 -0700 (PDT)\r
28 Received: by finestructure.net (Postfix, from userid 1000)\r
29         id F2AA47F4; Mon,  2 Apr 2012 14:43:18 -0700 (PDT)\r
30 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
31 To: Jani Nikula <jani@nikula.org>\r
32 Subject: Re: [PATCH 6/8] cli: add support for batch tagging operations to\r
33         "notmuch tag"\r
34 In-Reply-To:\r
35  <CAB+hUn-5yB15na2kFMZOjOEujKQTWHiefvgQYsT4Zi3UOzKwQw@mail.gmail.com>\r
36 References: <cover.1333231401.git.jani@nikula.org>\r
37         <f360a40bed50208d146aee8b06946b1b8315e818.1333231401.git.jani@nikula.org>\r
38         <87ty123tpc.fsf@servo.finestructure.net>\r
39         <87aa2tc22z.fsf@zancas.localnet>\r
40         <87iphh50hz.fsf@servo.finestructure.net>\r
41         <CAB+hUn_J9oOmbWaQ+_2yGG6i6ecDXbfJWYbpaYx_kbSnAH+EcA@mail.gmail.com>\r
42         <87fwcl4yr8.fsf@servo.finestructure.net>\r
43         <CAB+hUn-5yB15na2kFMZOjOEujKQTWHiefvgQYsT4Zi3UOzKwQw@mail.gmail.com>\r
44 User-Agent: Notmuch/0.12+87~g3c4c85f (http://notmuchmail.org) Emacs/23.3.1\r
45         (x86_64-pc-linux-gnu)\r
46 Date: Mon, 02 Apr 2012 14:43:16 -0700\r
47 Message-ID: <87d37p4xor.fsf@servo.finestructure.net>\r
48 MIME-Version: 1.0\r
49 Content-Type: multipart/signed; boundary="=-=-=";\r
50         micalg=pgp-sha256; protocol="application/pgp-signature"\r
51 Cc: Notmuch Mail <notmuch@notmuchmail.org>\r
52 X-BeenThere: notmuch@notmuchmail.org\r
53 X-Mailman-Version: 2.1.13\r
54 Precedence: list\r
55 List-Id: "Use and development of the notmuch mail system."\r
56         <notmuch.notmuchmail.org>\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
60 List-Post: <mailto:notmuch@notmuchmail.org>\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
64 X-List-Received-Date: Mon, 02 Apr 2012 21:43:23 -0000\r
65 \r
66 --=-=-=\r
67 \r
68 So what if we instead modified the top level binary ("notmuch") to:\r
69 \r
70 * add an option to specify that commands are to be processed from stdin\r
71   (--batch)\r
72 \r
73 * when in batch mode the db is opened once at the beginning and locked\r
74 \r
75 * commands are processed from stdin in the exact same form they are\r
76   specified on the command line ("tag +foo -- from:bar", "search\r
77   tag:foo", etc.).\r
78 \r
79 * db is closed when EOF is reached.\r
80 \r
81 That seems like it would be a generally much cleaner interface, and much\r
82 more flexible.\r
83 \r
84 jamie.\r
85 \r
86 --=-=-=\r
87 Content-Type: application/pgp-signature\r
88 \r
89 -----BEGIN PGP SIGNATURE-----\r
90 Version: GnuPG v1.4.12 (GNU/Linux)\r
91 \r
92 iQIcBAEBCAAGBQJPeh10AAoJEO00zqvie6q8PgEP/3dfQxm6ZveppXcxcchZ+2ce\r
93 IFCZAy82P5RLBSogCqXFyySZPiMibvLALh479Sh9sWnftfuV1zLrwHpboEyCflDY\r
94 CpzLOXXEPKccxQwowsJ7MuBXXZd5FqJF2IrGnRcW7rbv6Qrdf2SGS7sDcZSza10s\r
95 0MtbCB+WjoiRli5DKJQepWOFxR2398bdrcSDFgVVyzhWk87ODpPj4TDdrwb8HziM\r
96 r6qyToI9hbwvhbOrCsoQH1U0TXhB/VQKfJkPSFAjArDVz6/A7gdKVnDHFvQvzMy9\r
97 QOqCpj/O/EAF/CrEMVwKZc35pscljGxGJ+GkP9L0O4IbK8JE5GaGcCJjp9F3P99m\r
98 YRuL7mKLICZRRTK1NQ7SnTBPZAOa2ZT7lQaz6Vw6Air4dc4j9ajt9R5Tg25rWUBt\r
99 IvZRWgbIwlR+b8DmTqWaQfKDaTzjsZWay1BzYpKIhDZ/M90MhALmPxJ3lQUEYOIn\r
100 G7WfGrzTYSpEOm/aFCBWAgO0UPNftBcZY9ezyVuEdPdIELWABOMRRPqZvZ7plKcR\r
101 0HnzQlTIPuIudBMfVWNIxNJ6IsrJ4EEsTi2u2v/uPIE6TsCYjtpDqAS0j64liBZU\r
102 q5IDmBdRontFpuu0wxtYXc6ykFboMu9zbMuL42JuB7lZEiJyL0s1F/pKxBg+jpZS\r
103 7LHNtEtXHVAYeL1YDC0k\r
104 =1AQS\r
105 -----END PGP SIGNATURE-----\r
106 --=-=-=--\r