Re: Filesystem functionality used by notmuch
[notmuch-archives.git] / 44 / 779b9de4b05cdca46721df33618c242670db57
1 Return-Path: <amdragon@gmail.com>\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 159B4431FB6\r
6         for <notmuch@notmuchmail.org>; Wed, 25 May 2011 15:42:33 -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: -0.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
13         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id rFK-QfU+QgE9 for <notmuch@notmuchmail.org>;\r
17         Wed, 25 May 2011 15:42:31 -0700 (PDT)\r
18 Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com\r
19         [209.85.216.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 127B7429E28\r
22         for <notmuch@notmuchmail.org>; Wed, 25 May 2011 15:42:31 -0700 (PDT)\r
23 Received: by qwb7 with SMTP id 7so116194qwb.26\r
24         for <notmuch@notmuchmail.org>; Wed, 25 May 2011 15:42:30 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:mime-version:sender:in-reply-to:references:date\r
27         :x-google-sender-auth:message-id:subject:from:to:cc:content-type\r
28         :content-transfer-encoding;\r
29         bh=5ursYtAqnEGrMbeg9tRWlD28be1FXJWS5/bMznQurDs=;\r
30         b=Ir5orwYuZY68ivrKEuMv3QmfyPi6+grPwVf/2AtwDq5QweTmPK30ngit/qkZJzGF7y\r
31         nGetgRCvEcvKbswgkWcJ47qYcv/L9aWp27pJNmGaT6iwMCXMGUJVAZPVkyzJ1NumO+nk\r
32         LO/LN5Il+OJuGm2A1Z/l5YMhAMr/2SJ3JeLA8=\r
33 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
34         h=mime-version:sender:in-reply-to:references:date\r
35         :x-google-sender-auth:message-id:subject:from:to:cc:content-type\r
36         :content-transfer-encoding;\r
37         b=oeD++TMlB79MEuILy+pZAULVukCNzISZKzS+ui6zt6vpVooeFkXF82y63PMP1tCnDb\r
38         KVuCFq2OY2EpV5KBeur/Iu8md8so2EIzvOHhWVbQTIgzdRcrkgVVxtSlbSnqIjlA/sxj\r
39         3k1Fr2tETz6urtIHRUzTXoJM2kvIys9mUBdcw=\r
40 MIME-Version: 1.0\r
41 Received: by 10.229.142.11 with SMTP id o11mr103097qcu.46.1306363350097; Wed,\r
42         25 May 2011 15:42:30 -0700 (PDT)\r
43 Sender: amdragon@gmail.com\r
44 Received: by 10.229.188.68 with HTTP; Wed, 25 May 2011 15:42:30 -0700 (PDT)\r
45 In-Reply-To: <87ei3mcw7h.fsf@gilead.invalid>\r
46 References: <87fwoath2s.fsf@gilead.home.box>\r
47         <BANLkTinKS5LbQsZuK8HyCzj+Lo4xqa2Sfg@mail.gmail.com>\r
48         <871uznqeox.fsf@tredergarh.home.box>\r
49         <BANLkTin0+O=mubHF7JNpw4u3DQDQJQ5zbw@mail.gmail.com>\r
50         <874o4iwwp5.fsf@gilead.invalid> <871uzmwtng.fsf@gilead.invalid>\r
51         <BANLkTikAB0mogUuS-nT_-i51LBdUBHCz3g@mail.gmail.com>\r
52         <87ei3mcw7h.fsf@gilead.invalid>\r
53 Date: Wed, 25 May 2011 18:42:30 -0400\r
54 X-Google-Sender-Auth: eKBQJ3cSF0ex3vkAyQIBfjV_FcQ\r
55 Message-ID: <BANLkTi=729DWai4q57iBSfz1wDhBXsmndQ@mail.gmail.com>\r
56 Subject: Re: [PATCH] emacs: Make the queries used in the all-tags section\r
57 From: Austin Clements <amdragon@mit.edu>\r
58 To: Daniel Schoepe <daniel.schoepe@googlemail.com>\r
59 Content-Type: text/plain; charset=ISO-8859-1\r
60 Content-Transfer-Encoding: quoted-printable\r
61 Cc: notmuch@notmuchmail.org\r
62 X-BeenThere: notmuch@notmuchmail.org\r
63 X-Mailman-Version: 2.1.13\r
64 Precedence: list\r
65 List-Id: "Use and development of the notmuch mail system."\r
66         <notmuch.notmuchmail.org>\r
67 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
69 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
70 List-Post: <mailto:notmuch@notmuchmail.org>\r
71 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
72 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
73         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
74 X-List-Received-Date: Wed, 25 May 2011 22:42:33 -0000\r
75 \r
76 On Wed, May 25, 2011 at 5:21 PM, Daniel Schoepe\r
77 <daniel.schoepe@googlemail.com> wrote:\r
78 > On Wed, 25 May 2011 15:11:16 -0400, Austin Clements <amdragon@mit.edu> wr=\r
79 ote:\r
80 >> So, perhaps something like\r
81 >>\r
82 >> (defcustom notmuch-hello-tag-list-counts nil\r
83 >> =A0 "Method for generating counts displayed in the all tags list.\r
84 >>\r
85 >> This variable controls the query used to generate counts for each\r
86 >> tag in the \"all tags\" list. =A0If nil, the tag list will count\r
87 >> all messages with each tag. =A0This can be a query string that will\r
88 >> filter the messages counted for each tag. =A0Finally, this can be a\r
89 >> function that will be called for each tag and should return a\r
90 >> filter query for that tag, or nil to hide the tag."\r
91 >> =A0 :type '(choice (const :tag "Count all messages" nil)\r
92 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(const :tag "Count unread messages" "=\r
93 tag:unread")\r
94 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(const :tag "Custom filter" string)\r
95 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(const :tag "Custom filter function" =\r
96 function))\r
97 >> =A0 :group 'notmuch)\r
98 >\r
99 > That is slightly less accurate though, since the query is not only used\r
100 > to generate the counts, but also the searches that are performed when\r
101 > one presses return on a tag in the list.\r
102 \r
103 'Doh.  That's what I get for not reading the surrounding code.  I\r
104 misunderstood what your patch was going for and assumed it was what\r
105 *I* wanted notmuch to do, which is to show me useful counts (e.g.,\r
106 unread count), but not to change the underlying query.  ]:--8)\r
107 \r
108 So, to me, it seems like this turns the all tags section into another\r
109 saved searches section, just with a slight twist, and makes me wonder\r
110 if there's a better way to reconcile these.\r
111 \r
112 > Ah, thanks. I guess too much exposure to Haskell (and how smart GHC is)\r
113 > makes me write things in a functional style without thinking about\r
114 > performance.\r
115 \r
116 Hah, been there.  I have to constantly remind myself that Elisp is\r
117 *not* a self-respecting functional programming language, despite how\r
118 much it may look like Scheme.\r