Re: [PATCH] Implement a simple read-eval-print loop.
authorAustin Clements <amdragon@gmail.com>
Sun, 21 Nov 2010 23:50:33 +0000 (18:50 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:34 +0000 (09:37 -0800)
76/0360b212eef1dfc306c55fa266410864908d27 [new file with mode: 0644]

diff --git a/76/0360b212eef1dfc306c55fa266410864908d27 b/76/0360b212eef1dfc306c55fa266410864908d27
new file mode 100644 (file)
index 0000000..7bb591f
--- /dev/null
@@ -0,0 +1,118 @@
+Return-Path: <amdragon@gmail.com>\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 B681540DEF7\r
+       for <notmuch@notmuchmail.org>; Sun, 21 Nov 2010 15:50:46 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.998\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5\r
+       tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
+       DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001,\r
+       RCVD_IN_DNSWL_NONE=-0.0001] 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 t+0fP+2F+067 for <notmuch@notmuchmail.org>;\r
+       Sun, 21 Nov 2010 15:50:36 -0800 (PST)\r
+Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com\r
+       [209.85.216.181])\r
+       by olra.theworths.org (Postfix) with ESMTP id 3BE5D40DEF1\r
+       for <notmuch@notmuchmail.org>; Sun, 21 Nov 2010 15:50:36 -0800 (PST)\r
+Received: by qyk5 with SMTP id 5so141617qyk.5\r
+       for <notmuch@notmuchmail.org>; Sun, 21 Nov 2010 15:50:33 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=domainkey-signature:mime-version:received:received:in-reply-to\r
+       :references:date:message-id:subject:from:to:cc:content-type;\r
+       bh=S60X7IRnrhhyNO3aDC3sZFa4nlB4SCBO47hkNjD5wQQ=;\r
+       b=qNjKmls9OdQIg79tLCa3yBCPLv6ZouFK8yN7yySKpRGmt+wF1EQvZPGQPRdVIRL4Ph\r
+       +rPzfwLCbAifaLGZGx+ap9opY5JVhUrCwC3ZidlI5hnB9x08WLNyEVwGOceqFZXuJJ4V\r
+       ZY8VMRWtKM7QdJFnp5IZt+LJvH1xHE+ziQkGM=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+       h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
+       :cc:content-type;\r
+       b=pceCRxbznwYy9w5Qeiaomo3SoYP5L+sxN/eTv1Y2VikcmkSveEsZQyju06DyAs7Ik6\r
+       v51WD1A/eilioSovQzQVX0JMxHtc84CdBobXozpAhnhL/D519m7ouU9F40cy1u/hkgkj\r
+       7wGmPjXcAMCMbt9li/zrZtBb1ouct1OhTjZcw=\r
+MIME-Version: 1.0\r
+Received: by 10.229.95.193 with SMTP id e1mr4432349qcn.277.1290383433686; Sun,\r
+       21 Nov 2010 15:50:33 -0800 (PST)\r
+Received: by 10.229.224.202 with HTTP; Sun, 21 Nov 2010 15:50:33 -0800 (PST)\r
+In-Reply-To: <87y68mbcye.fsf@resox.2x.cz>\r
+References: <AANLkTi=7eCt0=NqUiJFrGDcaZ17LOd3qNNqN1-ASwYzr@mail.gmail.com>\r
+       <87sjyvk875.fsf@wsheee.2x.cz>\r
+       <AANLkTin_6A1qnuFpE9oPXySA0j5jTV-tq=BbqSNMPWfb@mail.gmail.com>\r
+       <AANLkTikMUhmEQjSLj3Uys9iBU1r8G22TuT337y1N3ZrJ@mail.gmail.com>\r
+       <87y68mbcye.fsf@resox.2x.cz>\r
+Date: Sun, 21 Nov 2010 18:50:33 -0500\r
+Message-ID: <AANLkTi=kFo66X-+b2O0DjTWEpoO1R84JReJHJSF0Ge0r@mail.gmail.com>\r
+Subject: Re: [PATCH] Implement a simple read-eval-print loop.\r
+From: Austin Clements <amdragon@gmail.com>\r
+To: Michal Sojka <sojkam1@fel.cvut.cz>\r
+Content-Type: multipart/alternative; boundary=0016368325ac30605f049598ce59\r
+Cc: servilio <servilio@gmail.com>, notmuch <notmuch@notmuchmail.org>\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, 21 Nov 2010 23:50:46 -0000\r
+\r
+--0016368325ac30605f049598ce59\r
+Content-Type: text/plain; charset=ISO-8859-1\r
+\r
+What about\r
+ notmuch count query1; notmuch count query2; ...\r
+all as a single command issued by notmuch-hello?  That should give exactly\r
+the same output, but eliminates the network round-trips without special\r
+support from count.  It would be interesting to see how this compares with\r
+your modified count and with the current round-trip-per-count approach.\r
+\r
+On Sun, Nov 21, 2010 at 4:10 PM, Michal Sojka <sojkam1@fel.cvut.cz> wrote:\r
+\r
+> Then we could use something like the following to determine the counts\r
+> of matched messages for saved searches:\r
+>\r
+> $ (echo $query1; echo $query2; ...) | notmuch count --stdin\r
+> <count1>\r
+> <count2>\r
+> ...\r
+>\r
+> -Michal\r
+>\r
+\r
+--0016368325ac30605f049598ce59\r
+Content-Type: text/html; charset=ISO-8859-1\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+What about<div>=A0notmuch count query1; notmuch count query2; ...</div><div=\r
+>all as a single command issued by notmuch-hello? =A0That should give exact=\r
+ly the same output, but eliminates the network round-trips without special =\r
+support from count. =A0It would be interesting to see how this compares wit=\r
+h your modified count and with the current round-trip-per-count approach.<b=\r
+r>\r
+<br><div class=3D"gmail_quote">On Sun, Nov 21, 2010 at 4:10 PM, Michal Sojk=\r
+a <span dir=3D"ltr">&lt;<a href=3D"mailto:sojkam1@fel.cvut.cz">sojkam1@fel.=\r
+cvut.cz</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D=\r
+"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">\r
+<div class=3D"im">Then we could use something like the following to determi=\r
+ne the counts</div>\r
+of matched messages for saved searches:<br>\r
+<br>\r
+$ (echo $query1; echo $query2; ...) | notmuch count --stdin<br>\r
+&lt;count1&gt;<br>\r
+&lt;count2&gt;<br>\r
+...<br>\r
+<font color=3D"#888888"><br>\r
+-Michal<br>\r
+</font></blockquote></div><br></div>\r
+\r
+--0016368325ac30605f049598ce59--\r