Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / 76 / 0360b212eef1dfc306c55fa266410864908d27
1 Return-Path: <amdragon@gmail.com>\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 B681540DEF7\r
6         for <notmuch@notmuchmail.org>; Sun, 21 Nov 2010 15:50:46 -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.998\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
13         DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001,\r
14         RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id t+0fP+2F+067 for <notmuch@notmuchmail.org>;\r
18         Sun, 21 Nov 2010 15:50:36 -0800 (PST)\r
19 Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com\r
20         [209.85.216.181])\r
21         by olra.theworths.org (Postfix) with ESMTP id 3BE5D40DEF1\r
22         for <notmuch@notmuchmail.org>; Sun, 21 Nov 2010 15:50:36 -0800 (PST)\r
23 Received: by qyk5 with SMTP id 5so141617qyk.5\r
24         for <notmuch@notmuchmail.org>; Sun, 21 Nov 2010 15:50:33 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:mime-version:received:received:in-reply-to\r
27         :references:date:message-id:subject:from:to:cc:content-type;\r
28         bh=S60X7IRnrhhyNO3aDC3sZFa4nlB4SCBO47hkNjD5wQQ=;\r
29         b=qNjKmls9OdQIg79tLCa3yBCPLv6ZouFK8yN7yySKpRGmt+wF1EQvZPGQPRdVIRL4Ph\r
30         +rPzfwLCbAifaLGZGx+ap9opY5JVhUrCwC3ZidlI5hnB9x08WLNyEVwGOceqFZXuJJ4V\r
31         ZY8VMRWtKM7QdJFnp5IZt+LJvH1xHE+ziQkGM=\r
32 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
33         h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
34         :cc:content-type;\r
35         b=pceCRxbznwYy9w5Qeiaomo3SoYP5L+sxN/eTv1Y2VikcmkSveEsZQyju06DyAs7Ik6\r
36         v51WD1A/eilioSovQzQVX0JMxHtc84CdBobXozpAhnhL/D519m7ouU9F40cy1u/hkgkj\r
37         7wGmPjXcAMCMbt9li/zrZtBb1ouct1OhTjZcw=\r
38 MIME-Version: 1.0\r
39 Received: by 10.229.95.193 with SMTP id e1mr4432349qcn.277.1290383433686; Sun,\r
40         21 Nov 2010 15:50:33 -0800 (PST)\r
41 Received: by 10.229.224.202 with HTTP; Sun, 21 Nov 2010 15:50:33 -0800 (PST)\r
42 In-Reply-To: <87y68mbcye.fsf@resox.2x.cz>\r
43 References: <AANLkTi=7eCt0=NqUiJFrGDcaZ17LOd3qNNqN1-ASwYzr@mail.gmail.com>\r
44         <87sjyvk875.fsf@wsheee.2x.cz>\r
45         <AANLkTin_6A1qnuFpE9oPXySA0j5jTV-tq=BbqSNMPWfb@mail.gmail.com>\r
46         <AANLkTikMUhmEQjSLj3Uys9iBU1r8G22TuT337y1N3ZrJ@mail.gmail.com>\r
47         <87y68mbcye.fsf@resox.2x.cz>\r
48 Date: Sun, 21 Nov 2010 18:50:33 -0500\r
49 Message-ID: <AANLkTi=kFo66X-+b2O0DjTWEpoO1R84JReJHJSF0Ge0r@mail.gmail.com>\r
50 Subject: Re: [PATCH] Implement a simple read-eval-print loop.\r
51 From: Austin Clements <amdragon@gmail.com>\r
52 To: Michal Sojka <sojkam1@fel.cvut.cz>\r
53 Content-Type: multipart/alternative; boundary=0016368325ac30605f049598ce59\r
54 Cc: servilio <servilio@gmail.com>, notmuch <notmuch@notmuchmail.org>\r
55 X-BeenThere: notmuch@notmuchmail.org\r
56 X-Mailman-Version: 2.1.13\r
57 Precedence: list\r
58 List-Id: "Use and development of the notmuch mail system."\r
59         <notmuch.notmuchmail.org>\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
63 List-Post: <mailto:notmuch@notmuchmail.org>\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
66         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
67 X-List-Received-Date: Sun, 21 Nov 2010 23:50:46 -0000\r
68 \r
69 --0016368325ac30605f049598ce59\r
70 Content-Type: text/plain; charset=ISO-8859-1\r
71 \r
72 What about\r
73  notmuch count query1; notmuch count query2; ...\r
74 all as a single command issued by notmuch-hello?  That should give exactly\r
75 the same output, but eliminates the network round-trips without special\r
76 support from count.  It would be interesting to see how this compares with\r
77 your modified count and with the current round-trip-per-count approach.\r
78 \r
79 On Sun, Nov 21, 2010 at 4:10 PM, Michal Sojka <sojkam1@fel.cvut.cz> wrote:\r
80 \r
81 > Then we could use something like the following to determine the counts\r
82 > of matched messages for saved searches:\r
83 >\r
84 > $ (echo $query1; echo $query2; ...) | notmuch count --stdin\r
85 > <count1>\r
86 > <count2>\r
87 > ...\r
88 >\r
89 > -Michal\r
90 >\r
91 \r
92 --0016368325ac30605f049598ce59\r
93 Content-Type: text/html; charset=ISO-8859-1\r
94 Content-Transfer-Encoding: quoted-printable\r
95 \r
96 What about<div>=A0notmuch count query1; notmuch count query2; ...</div><div=\r
97 >all as a single command issued by notmuch-hello? =A0That should give exact=\r
98 ly the same output, but eliminates the network round-trips without special =\r
99 support from count. =A0It would be interesting to see how this compares wit=\r
100 h your modified count and with the current round-trip-per-count approach.<b=\r
101 r>\r
102 <br><div class=3D"gmail_quote">On Sun, Nov 21, 2010 at 4:10 PM, Michal Sojk=\r
103 a <span dir=3D"ltr">&lt;<a href=3D"mailto:sojkam1@fel.cvut.cz">sojkam1@fel.=\r
104 cvut.cz</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D=\r
105 "margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">\r
106 <div class=3D"im">Then we could use something like the following to determi=\r
107 ne the counts</div>\r
108 of matched messages for saved searches:<br>\r
109 <br>\r
110 $ (echo $query1; echo $query2; ...) | notmuch count --stdin<br>\r
111 &lt;count1&gt;<br>\r
112 &lt;count2&gt;<br>\r
113 ...<br>\r
114 <font color=3D"#888888"><br>\r
115 -Michal<br>\r
116 </font></blockquote></div><br></div>\r
117 \r
118 --0016368325ac30605f049598ce59--\r