Re: About the json output and the number of results shown.
authorSebastian Spaeth <Sebastian@sspaeth.de>
Fri, 14 Jan 2011 13:48:38 +0000 (14:48 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:42 +0000 (09:37 -0800)
b5/70066c358e2658bbcab32a366e8478850d23f8 [new file with mode: 0644]

diff --git a/b5/70066c358e2658bbcab32a366e8478850d23f8 b/b5/70066c358e2658bbcab32a366e8478850d23f8
new file mode 100644 (file)
index 0000000..f7cfa88
--- /dev/null
@@ -0,0 +1,91 @@
+Return-Path: <Sebastian@sspaeth.de>\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 24DAC429E43\r
+       for <notmuch@notmuchmail.org>; Fri, 14 Jan 2011 05:48:44 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.1\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\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 0Oxkh1RrwWEy for <notmuch@notmuchmail.org>;\r
+       Fri, 14 Jan 2011 05:48:43 -0800 (PST)\r
+Received: from homiemail-a17.g.dreamhost.com (caiajhbdcbhh.dreamhost.com\r
+       [208.97.132.177])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8A82D429E40\r
+       for <notmuch@notmuchmail.org>; Fri, 14 Jan 2011 05:48:43 -0800 (PST)\r
+Received: from homiemail-a17.g.dreamhost.com (localhost [127.0.0.1])\r
+       by homiemail-a17.g.dreamhost.com (Postfix) with ESMTP id 701CE7A8063;\r
+       Fri, 14 Jan 2011 05:48:41 -0800 (PST)\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=sspaeth.de; h=from:to:cc:subject\r
+       :in-reply-to:references:date:message-id:mime-version:\r
+       content-type; q=dns; s=sspaeth.de; b=ifNXyz/P/ULvR+8grl6LItOhfMr\r
+       KcRKIQ27dlza7omZfFo06DHSCHady9cLTsgXYhnYa7i9eYWa6qxLrfnFfjft5bgg\r
+       QU0xZeYownb821qIvHuouKjwkLvQYBa+go9yUXAGCEXtM+tN90+DMBlNNEEkMPB6\r
+       p1XVdebL2WZtHya4=\r
+DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sspaeth.de; h=from:to:cc\r
+       :subject:in-reply-to:references:date:message-id:mime-version:\r
+       content-type; s=sspaeth.de; bh=p76GravCEuLx4fAT9//TVERj4eQ=; b=V\r
+       WRxPW05VAK2yqIBROUdhTDjPJFCLr9PoF6g9bBIMRhz0sghp2/hNBRnms+DsFtGK\r
+       7zizZ93I0KUoA+PK0QiPr3SoUfxVtPK/z1Gt5mp/MFfyZzCIM7uKCSpmjBaM7WqN\r
+       zNV5ROCFXDtrpKALAxg9iDq4ARdvfNSZKmJVvQH9oI=\r
+Received: from spaetzbook.sspaeth.de (mtec-hg-docking-1-dhcp-186.ethz.ch\r
+       [129.132.133.186]) (Authenticated sender: fax@sspaeth.de)\r
+       by homiemail-a17.g.dreamhost.com (Postfix) with ESMTPA id E93577A8058; \r
+       Fri, 14 Jan 2011 05:48:39 -0800 (PST)\r
+Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation);\r
+       Fri, 14 Jan 2011 14:48:38 +0100\r
+From: Sebastian Spaeth <Sebastian@sspaeth.de>\r
+To: Christophe-Marie Duquesne <chm.duquesne@gmail.com>\r
+Subject: Re: About the json output and the number of results shown.\r
+In-Reply-To: <AANLkTimYDZaHBxNxkJHfs+4Ww73_+7oEqW+bOexskJjU@mail.gmail.com>\r
+References: <AANLkTi=Mzu9bu3y0RKB5YZUpZOT9qujXgxtpB-8Bvk=2@mail.gmail.com>\r
+       <8762ttf5wy.fsf@SSpaeth.de>\r
+       <AANLkTimYDZaHBxNxkJHfs+4Ww73_+7oEqW+bOexskJjU@mail.gmail.com>\r
+User-Agent: Notmuch/0.5-58-g9741d28 (http://notmuchmail.org) Emacs/23.1.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Fri, 14 Jan 2011 14:48:38 +0100\r
+Message-ID: <87tyhboatl.fsf@SSpaeth.de>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Cc: 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: Fri, 14 Jan 2011 13:48:44 -0000\r
+\r
+On Thu, 13 Jan 2011 19:46:29 +0100, Christophe-Marie Duquesne <chm.duquesne@gmail.com> wrote:\r
+> > Alternatively, you could use the python bindings to libnotmuch and call\r
+> > the functions directly. You could do that in a unthreaded or threaded\r
+> > fashion...\r
+> \r
+> I've had a look to the python libnotmuch documentation. My problem\r
+> with this API is that, unless I did not read it correctly, if I use\r
+> one of its functions in a threaded fashion, I still have to wait for\r
+> this function to finish until I get results. When using the command\r
+> line tool, I can process the text as it gets printed on stdout, and I\r
+> have data to show to the user even though notmuch has not finished to\r
+> output it...\r
+\r
+Well, you have to wait until the "search_messages()" function returns\r
+and once it does you can output text as you go, by iterating through the\r
+threads/mails. I am not sure that the command line client is any faster\r
+as that with it's interactive output.\r
+\r
+But I haven't investigated the performance closely.\r
+\r
+Sebastian\r