Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B681540DEF7 for ; Sun, 21 Nov 2010 15:50:46 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.998 X-Spam-Level: X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t+0fP+2F+067 for ; Sun, 21 Nov 2010 15:50:36 -0800 (PST) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.216.181]) by olra.theworths.org (Postfix) with ESMTP id 3BE5D40DEF1 for ; Sun, 21 Nov 2010 15:50:36 -0800 (PST) Received: by qyk5 with SMTP id 5so141617qyk.5 for ; Sun, 21 Nov 2010 15:50:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=S60X7IRnrhhyNO3aDC3sZFa4nlB4SCBO47hkNjD5wQQ=; b=qNjKmls9OdQIg79tLCa3yBCPLv6ZouFK8yN7yySKpRGmt+wF1EQvZPGQPRdVIRL4Ph +rPzfwLCbAifaLGZGx+ap9opY5JVhUrCwC3ZidlI5hnB9x08WLNyEVwGOceqFZXuJJ4V ZY8VMRWtKM7QdJFnp5IZt+LJvH1xHE+ziQkGM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=pceCRxbznwYy9w5Qeiaomo3SoYP5L+sxN/eTv1Y2VikcmkSveEsZQyju06DyAs7Ik6 v51WD1A/eilioSovQzQVX0JMxHtc84CdBobXozpAhnhL/D519m7ouU9F40cy1u/hkgkj 7wGmPjXcAMCMbt9li/zrZtBb1ouct1OhTjZcw= MIME-Version: 1.0 Received: by 10.229.95.193 with SMTP id e1mr4432349qcn.277.1290383433686; Sun, 21 Nov 2010 15:50:33 -0800 (PST) Received: by 10.229.224.202 with HTTP; Sun, 21 Nov 2010 15:50:33 -0800 (PST) In-Reply-To: <87y68mbcye.fsf@resox.2x.cz> References: <87sjyvk875.fsf@wsheee.2x.cz> <87y68mbcye.fsf@resox.2x.cz> Date: Sun, 21 Nov 2010 18:50:33 -0500 Message-ID: Subject: Re: [PATCH] Implement a simple read-eval-print loop. From: Austin Clements To: Michal Sojka Content-Type: multipart/alternative; boundary=0016368325ac30605f049598ce59 Cc: servilio , notmuch X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Nov 2010 23:50:46 -0000 --0016368325ac30605f049598ce59 Content-Type: text/plain; charset=ISO-8859-1 What about notmuch count query1; notmuch count query2; ... all as a single command issued by notmuch-hello? That should give exactly the same output, but eliminates the network round-trips without special support from count. It would be interesting to see how this compares with your modified count and with the current round-trip-per-count approach. On Sun, Nov 21, 2010 at 4:10 PM, Michal Sojka wrote: > Then we could use something like the following to determine the counts > of matched messages for saved searches: > > $ (echo $query1; echo $query2; ...) | notmuch count --stdin > > > ... > > -Michal > --0016368325ac30605f049598ce59 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable What about
=A0notmuch count query1; notmuch count query2; ...
all as a single command issued by notmuch-hello? =A0That should give exact= ly the same output, but eliminates the network round-trips without special = support from count. =A0It would be interesting to see how this compares wit= h your modified count and with the current round-trip-per-count approach.
On Sun, Nov 21, 2010 at 4:10 PM, Michal Sojk= a <sojkam1@fel.= cvut.cz> wrote:
Then we could use something like the following to determi= ne the counts
of matched messages for saved searches:

$ (echo $query1; echo $query2; ...) | notmuch count --stdin
<count1>
<count2>
...

-Michal

--0016368325ac30605f049598ce59--