From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 3F4D0429E35 for ; Thu, 13 Jan 2011 10:46:57 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled 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 8QzBCtX-C4Td for ; Thu, 13 Jan 2011 10:46:57 -0800 (PST) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) by olra.theworths.org (Postfix) with ESMTP id B500B429E34 for ; Thu, 13 Jan 2011 10:46:56 -0800 (PST) Received: by wwb29 with SMTP id 29so2010959wwb.2 for ; Thu, 13 Jan 2011 10:46:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=gD+hIPz+etg3h0IYs9POmFVwknpDlVkCuaD78W2TQhA=; b=TtWChm1NaiwE0HyJFp8i1Uu6uuCtvpIjk/aXovuJjKfNRDoEinC/bbALkk/meUOn8H kzIV+XgA0NTmPtUkDl0VNSYyS/zm5YzGmsqhNWnbtZALQkJekwZG/XOHZ+5kzWx/OC5F HxPmWRyBdVHRNq8RPEQEvEf12pfM5Us1yE50E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=YxJEQKkI7qtUXn21JZeunmVnSqaekZqpPHiRxzNkJdKCLawFe4aBWo0bok00KTmVPq RdTQl5U9ecFx8FbJJZfq0cJhqNiTrSdfl0Qi5w8Q4GWod9qeFcqgACU97DCxqLwI40do hsSMuCCjztw6stOuBh+188Ai3WcVaAa8MiqBI= Received: by 10.227.141.131 with SMTP id m3mr2682194wbu.125.1294944409389; Thu, 13 Jan 2011 10:46:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.143.206 with HTTP; Thu, 13 Jan 2011 10:46:29 -0800 (PST) In-Reply-To: <8762ttf5wy.fsf@SSpaeth.de> References: <8762ttf5wy.fsf@SSpaeth.de> From: Christophe-Marie Duquesne Date: Thu, 13 Jan 2011 19:46:29 +0100 Message-ID: Subject: Re: About the json output and the number of results shown. To: Sebastian Spaeth Content-Type: text/plain; charset=UTF-8 Cc: notmuch@notmuchmail.org 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: Thu, 13 Jan 2011 18:46:57 -0000 > Alternatively, you could use the python bindings to libnotmuch and call > the functions directly. You could do that in a unthreaded or threaded > fashion... I've had a look to the python libnotmuch documentation. My problem with this API is that, unless I did not read it correctly, if I use one of its functions in a threaded fashion, I still have to wait for this function to finish until I get results. When using the command line tool, I can process the text as it gets printed on stdout, and I have data to show to the user even though notmuch has not finished to output it...