Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / db / 1e6e2712b038298a18895a7cfa8efe8c5b4767
1 Return-Path: <jani@nikula.org>\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 05E60431FB6\r
6         for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 14:07:40 -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: -0.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 d7ZL+kMrJkhd for <notmuch@notmuchmail.org>;\r
16         Mon,  2 Apr 2012 14:07:39 -0700 (PDT)\r
17 Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com\r
18         [209.85.160.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 2C9E9431FAE\r
21         for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 14:07:39 -0700 (PDT)\r
22 Received: by pbcuo1 with SMTP id uo1so5525664pbc.26\r
23         for <notmuch@notmuchmail.org>; Mon, 02 Apr 2012 14:07:38 -0700 (PDT)\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25         d=google.com; s=20120113;\r
26         h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
27         :cc:content-type:x-gm-message-state;\r
28         bh=K0lWuLMCbW08EidSK5qhMzZSCQgtSzrH+awnJPThNpc=;\r
29         b=UXON5g+cgx+0//PFDEkWirHtlpm7RhjlHZMm3+eOV3m0gt5I9o5QjQIfuzXfD7t3zj\r
30         YbKMe8vae+K8GyxY3HQaHKENe8lWWMewe/Qy4jcznRD43kj/+nlKeJZIQtpRbugP0vDO\r
31         RtxZSqI3JZAlaQsR+nTv8ePSkacjEhtF8PmqhLgPNRZA33670EmcQH2bOLYSa252EHPd\r
32         TWsLWVkxQ443ivyhunldIN5wYzrt37yHVHR6S9/f+0dLBPcKXvMbkJheM3HemAcR6z2F\r
33         Fzyi8RSQArBaAlRVTVbEeT576qkr7Rm2ssl1ui9L+46UdDFXS/6fV2keH8LDyN/UCGTx\r
34         d1AA==\r
35 MIME-Version: 1.0\r
36 Received: by 10.68.202.195 with SMTP id kk3mr23240520pbc.96.1333400858147;\r
37         Mon, 02 Apr 2012 14:07:38 -0700 (PDT)\r
38 Received: by 10.68.231.104 with HTTP; Mon, 2 Apr 2012 14:07:37 -0700 (PDT)\r
39 Received: by 10.68.231.104 with HTTP; Mon, 2 Apr 2012 14:07:37 -0700 (PDT)\r
40 In-Reply-To: <87iphh50hz.fsf@servo.finestructure.net>\r
41 References: <cover.1333231401.git.jani@nikula.org>\r
42         <f360a40bed50208d146aee8b06946b1b8315e818.1333231401.git.jani@nikula.org>\r
43         <87ty123tpc.fsf@servo.finestructure.net>\r
44         <87aa2tc22z.fsf@zancas.localnet>\r
45         <87iphh50hz.fsf@servo.finestructure.net>\r
46 Date: Tue, 3 Apr 2012 00:07:37 +0300\r
47 Message-ID:\r
48  <CAB+hUn_J9oOmbWaQ+_2yGG6i6ecDXbfJWYbpaYx_kbSnAH+EcA@mail.gmail.com>\r
49 Subject: Re: [PATCH 6/8] cli: add support for batch tagging operations to\r
50         "notmuch tag"\r
51 From: Jani Nikula <jani@nikula.org>\r
52 To: Jameson Graef Rollins <jrollins@finestructure.net>\r
53 Content-Type: multipart/alternative; boundary=047d7b15b1077e3c0c04bcb89424\r
54 X-Gm-Message-State:\r
55  ALoCoQmPpnoDWPkx8LvRtTcUUgONe0ZOeRYd1+7dVfyh4s33w6TrazmMhv27FexAxVirSJZicLje\r
56 Cc: Notmuch Mail <notmuch@notmuchmail.org>\r
57 X-BeenThere: notmuch@notmuchmail.org\r
58 X-Mailman-Version: 2.1.13\r
59 Precedence: list\r
60 List-Id: "Use and development of the notmuch mail system."\r
61         <notmuch.notmuchmail.org>\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
65 List-Post: <mailto:notmuch@notmuchmail.org>\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
69 X-List-Received-Date: Mon, 02 Apr 2012 21:07:40 -0000\r
70 \r
71 --047d7b15b1077e3c0c04bcb89424\r
72 Content-Type: text/plain; charset=UTF-8\r
73 \r
74 On Apr 2, 2012 11:42 PM, "Jameson Graef Rollins" <jrollins@finestructure.net>\r
75 wrote:\r
76 >\r
77 > On Mon, Apr 02 2012, David Bremner <david@tethera.net> wrote:\r
78 > > Jameson Graef Rollins <jrollins@finestructure.net> writes:\r
79 > >> On Sat, Mar 31 2012, Jani Nikula <jani@nikula.org> wrote:\r
80 > >>> Add support for batch tagging operations through stdin to "notmuch\r
81 > >>> tag". This can be enabled with the new --stdin command line option to\r
82 > >>> "notmuch new". The input must consist of lines of the format:\r
83 > >>>\r
84 > >>> T +<tag>|-<tag> [...] [--] <search-terms>\r
85 > >>\r
86 > >\r
87 > > I think that's my fault. I was imagining a possible future line-oriented\r
88 > > notmuch server and having various actions/queries possible. It seems a\r
89 > > bit blue sky at this point, but it does give extesibility fairly\r
90 > > cheaply.\r
91 >\r
92 > But then why not just make the command explicit, and just have the first\r
93 > field be "tag"?\r
94 >\r
95 > But then I wonder why do we even need any of this at all?  Isn't it this\r
96 > just exactly equivalent to:\r
97 >\r
98 > xargs -l notmuch <commands.txt\r
99 >\r
100 > ??\r
101 \r
102 Batch tagging brings performance and atomicity by opening and closing the\r
103 db only once. The hex encoding handles insane message ids and tags.\r
104 Otherwise there should be no difference.\r
105 \r
106 Jani.\r
107 \r
108 >\r
109 > jamie.\r
110 \r
111 --047d7b15b1077e3c0c04bcb89424\r
112 Content-Type: text/html; charset=UTF-8\r
113 Content-Transfer-Encoding: quoted-printable\r
114 \r
115 <p><br>\r
116 On Apr 2, 2012 11:42 PM, &quot;Jameson Graef Rollins&quot; &lt;<a href=3D"m=\r
117 ailto:jrollins@finestructure.net">jrollins@finestructure.net</a>&gt; wrote:=\r
118 <br>\r
119 &gt;<br>\r
120 &gt; On Mon, Apr 02 2012, David Bremner &lt;<a href=3D"mailto:david@tethera=\r
121 .net">david@tethera.net</a>&gt; wrote:<br>\r
122 &gt; &gt; Jameson Graef Rollins &lt;<a href=3D"mailto:jrollins@finestructur=\r
123 e.net">jrollins@finestructure.net</a>&gt; writes:<br>\r
124 &gt; &gt;&gt; On Sat, Mar 31 2012, Jani Nikula &lt;<a href=3D"mailto:jani@n=\r
125 ikula.org">jani@nikula.org</a>&gt; wrote:<br>\r
126 &gt; &gt;&gt;&gt; Add support for batch tagging operations through stdin to=\r
127  &quot;notmuch<br>\r
128 &gt; &gt;&gt;&gt; tag&quot;. This can be enabled with the new --stdin comma=\r
129 nd line option to<br>\r
130 &gt; &gt;&gt;&gt; &quot;notmuch new&quot;. The input must consist of lines =\r
131 of the format:<br>\r
132 &gt; &gt;&gt;&gt;<br>\r
133 &gt; &gt;&gt;&gt; T +&lt;tag&gt;|-&lt;tag&gt; [...] [--] &lt;search-terms&g=\r
134 t;<br>\r
135 &gt; &gt;&gt;<br>\r
136 &gt; &gt;<br>\r
137 &gt; &gt; I think that&#39;s my fault. I was imagining a possible future li=\r
138 ne-oriented<br>\r
139 &gt; &gt; notmuch server and having various actions/queries possible. It se=\r
140 ems a<br>\r
141 &gt; &gt; bit blue sky at this point, but it does give extesibility fairly<=\r
142 br>\r
143 &gt; &gt; cheaply.<br>\r
144 &gt;<br>\r
145 &gt; But then why not just make the command explicit, and just have the fir=\r
146 st<br>\r
147 &gt; field be &quot;tag&quot;?<br>\r
148 &gt;<br>\r
149 &gt; But then I wonder why do we even need any of this at all? =C2=A0Isn&#3=\r
150 9;t it this<br>\r
151 &gt; just exactly equivalent to:<br>\r
152 &gt;<br>\r
153 &gt; xargs -l notmuch &lt;commands.txt<br>\r
154 &gt;<br>\r
155 &gt; ??</p>\r
156 <p>Batch tagging brings performance and atomicity by opening and closing th=\r
157 e db only once. The hex encoding handles insane message ids and tags. Other=\r
158 wise there should be no difference.</p>\r
159 <p>Jani.</p>\r
160 <p>&gt;<br>\r
161 &gt; jamie.<br>\r
162 </p>\r
163 \r
164 --047d7b15b1077e3c0c04bcb89424--\r