Re: Avoiding the "huge INBOX of death"
[notmuch-archives.git] / a6 / d97e48526abf355b0804e06a93ffd15679b16a
1 Return-Path: <dme@dme.org>\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 6CFEE4196F4\r
6         for <notmuch@notmuchmail.org>; Mon,  5 Apr 2010 09:59:58 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id FPxht8eTGzUz for <notmuch@notmuchmail.org>;\r
16         Mon,  5 Apr 2010 09:59:56 -0700 (PDT)\r
17 Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com\r
18  [74.125.82.53])        by olra.theworths.org (Postfix) with ESMTP id 8D27E4196F0       for\r
19  <notmuch@notmuchmail.org>; Mon,  5 Apr 2010 09:59:56 -0700 (PDT)\r
20 Received: by wwb22 with SMTP id 22so2644269wwb.26\r
21         for <notmuch@notmuchmail.org>; Mon, 05 Apr 2010 09:59:55 -0700 (PDT)\r
22 Received: by 10.216.86.3 with SMTP id v3mr520446wee.190.1270486795610;\r
23         Mon, 05 Apr 2010 09:59:55 -0700 (PDT)\r
24 Received: from ut.hh.sledj.net (host83-217-165-81.dsl.vispa.com\r
25         [83.217.165.81])\r
26         by mx.google.com with ESMTPS id t12sm25558000gvd.21.2010.04.05.09.59.53\r
27         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
28         Mon, 05 Apr 2010 09:59:54 -0700 (PDT)\r
29 Received: by ut.hh.sledj.net (Postfix, from userid 1000)\r
30         id C63415941EC; Mon,  5 Apr 2010 17:59:51 +0100 (BST)\r
31 To: david@tethera.net, notmuch@notmuchmail.org\r
32 In-Reply-To: <1270485976-12776-1-git-send-email-david@tethera.net>\r
33 References: <1267015920-8999-1-git-send-email-david@tethera.net>\r
34         <1270485976-12776-1-git-send-email-david@tethera.net>\r
35 From: David Edmondson <dme@dme.org>\r
36 Date: Mon, 05 Apr 2010 17:59:51 +0100\r
37 Message-ID: <877holal88.fsf@ut.hh.sledj.net>\r
38 MIME-Version: 1.0\r
39 Content-Type: text/plain; charset=us-ascii\r
40 Cc: David Bremner <bremner@unb.ca>\r
41 Subject: Re: [notmuch] [PATCH v3] notmuch-query.el: new file to support\r
42  access to the notmuch database.\r
43 X-BeenThere: notmuch@notmuchmail.org\r
44 X-Mailman-Version: 2.1.13\r
45 Precedence: list\r
46 List-Id: "Use and development of the notmuch mail system."\r
47         <notmuch.notmuchmail.org>\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
51 List-Post: <mailto:notmuch@notmuchmail.org>\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
55 X-List-Received-Date: Mon, 05 Apr 2010 16:59:58 -0000\r
56 \r
57 On Mon,  5 Apr 2010 13:46:16 -0300, david@tethera.net wrote:\r
58 > diff --git a/emacs/notmuch-query.el b/emacs/notmuch-query.el\r
59 > new file mode 100644\r
60 > index 0000000..3f1a7b3\r
61 > --- /dev/null\r
62 > +++ b/emacs/notmuch-query.el\r
63 > @@ -0,0 +1,90 @@\r
64 > +; notmuch-query.el --- provide an emacs api to query notmuch\r
65 \r
66 Should this comment prefix be ';;'? A single ';' is indented way over to\r
67 the right by default.\r
68 \r
69 > +(defun notmuch-query-map-aux  (mapper function seq)\r
70 > +  "private function to do the actual mapping and flattening"\r
71 > +\r
72 > +  (apply 'append\r
73 > +      (mapcar\r
74 > +        (lambda (tree)\r
75 > +          (funcall mapper fn tree))\r
76 > +        seq)))\r
77 > +\r
78 > +\r
79 \r
80 There are a bunch of spurious blank lines in various places.\r
81 \r
82 dme.\r
83 -- \r
84 David Edmondson, http://dme.org\r