Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 75 / f67391208a15e3c735d98de957ad861840a0da
1 Return-Path: <m.walters@qmul.ac.uk>\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 0EE20431FB6\r
6         for <notmuch@notmuchmail.org>; Fri,  5 Sep 2014 08:30:34 -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.502\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.502 tagged_above=-999 required=5\r
12         tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
13         NML_ADSP_CUSTOM_MED=1.2, 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 xx1MspmQVTBf for <notmuch@notmuchmail.org>;\r
17         Fri,  5 Sep 2014 08:30:22 -0700 (PDT)\r
18 Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id CCDF2431FAF\r
22         for <notmuch@notmuchmail.org>; Fri,  5 Sep 2014 08:30:21 -0700 (PDT)\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])\r
24         by mail2.qmul.ac.uk with esmtp (Exim 4.71)\r
25         (envelope-from <m.walters@qmul.ac.uk>)\r
26         id 1XPvSZ-0002MZ-84; Fri, 05 Sep 2014 16:30:19 +0100\r
27 Received: from 5751dfa2.skybroadband.com ([87.81.223.162] helo=localhost)\r
28         by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71)\r
29         (envelope-from <m.walters@qmul.ac.uk>)\r
30         id 1XPvSY-0006RL-Rl; Fri, 05 Sep 2014 16:29:59 +0100\r
31 From: Mark Walters <markwalters1009@gmail.com>\r
32 To: David Edmondson <dme@dme.org>, notmuch@notmuchmail.org\r
33 Subject: Re: [PATCH v1 0/3] Address completion entirely in elisp.\r
34 In-Reply-To: <1409921969-65129-1-git-send-email-dme@dme.org>\r
35 References: <1409921969-65129-1-git-send-email-dme@dme.org>\r
36 User-Agent: Notmuch/0.18.1+86~gef5e66a (http://notmuchmail.org) Emacs/24.3.1\r
37         (x86_64-pc-linux-gnu)\r
38 Date: Fri, 05 Sep 2014 16:29:56 +0100\r
39 Message-ID: <87k35igk5n.fsf@qmul.ac.uk>\r
40 MIME-Version: 1.0\r
41 Content-Type: text/plain\r
42 X-Sender-Host-Address: 87.81.223.162\r
43 X-QM-Geographic: According to ripencc,\r
44         this message was delivered by a machine in Britain (UK) (GB).\r
45 X-QM-SPAM-Info: Sender has good ham record.  :)\r
46 X-QM-Body-MD5: fbafcd9f345a98812e30cb8ac0f047e8 (of first 20000 bytes)\r
47 X-SpamAssassin-Score: -0.1\r
48 X-SpamAssassin-SpamBar: /\r
49 X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
50         determine if it is\r
51         spam. We require at least 5.0 points to mark a message as spam.\r
52         This message scored -0.1 points.\r
53         Summary of the scoring: \r
54         * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
55         provider *      (markwalters1009[at]gmail.com)\r
56         * -0.1 AWL AWL: From: address is in the auto white-list\r
57 X-QM-Scan-Virus: ClamAV says the message is clean\r
58 X-BeenThere: notmuch@notmuchmail.org\r
59 X-Mailman-Version: 2.1.13\r
60 Precedence: list\r
61 List-Id: "Use and development of the notmuch mail system."\r
62         <notmuch.notmuchmail.org>\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
66 List-Post: <mailto:notmuch@notmuchmail.org>\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
69         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
70 X-List-Received-Date: Fri, 05 Sep 2014 15:30:34 -0000\r
71 \r
72 \r
73 Hi\r
74 \r
75 On Fri, 05 Sep 2014, David Edmondson <dme@dme.org> wrote:\r
76 > Address completion entirely in elisp.\r
77 >\r
78 > I grew frustrated with having to use an external command to provide\r
79 > address completion, as they all had annoyances (up front scanning,\r
80 > requiring python bindings, etc.). This is an attempt to provide\r
81 > something similar to jkr's notmuch-addresses.py (which I was\r
82 > previously using) entirely in elisp, relying only on the `notmuch'\r
83 > command.\r
84 \r
85 Just a few quick comments: the first is relevant to others trying this\r
86 patch.\r
87 \r
88 1) You seem to be missing a (require 'std11) somewhere. I did this via M-:\r
89 and then it ran fine.\r
90 \r
91 2) It is not quick on a spinning rust disk. This may not be relevant as\r
92 the delay is probably notmuch so would also be the case if I were using\r
93 notmuch-addresses.py (i normally just use a trivial script that parses\r
94 my .mailrc)\r
95 \r
96 3) Have you tried\r
97 id:1407771091-12651-1-git-send-email-sojkam1@fel.cvut.cz and do you have\r
98 any comments on the comparison?\r
99 \r
100 4) Finally, I wonder if we would be worth approaching the backend\r
101 notmuch use slightly differently: if we added a\r
102 notmuch_messages_collect_from function which was very similar to\r
103 notmuch_messages_collect_tags, and added a corresponding --output=from\r
104 to notmuch search then you would get the information you need very\r
105 quickly. I think it might be a lot faster as I think the from header is\r
106 stored in the database but some other headers are not, so that the\r
107 current method the show --body=false needs to look at the actually\r
108 messages\r
109 \r
110 I should emphasise that none of the above means I am opposed to the\r
111 patch: having respectable built in address-completion support would be\r
112 very nice.\r
113 \r
114 Best wishes\r
115 \r
116 Mark\r
117 \r
118 \r
119 \r
120 \r
121 >\r
122 >\r
123 > David Edmondson (3):\r
124 >   emacs: Allow query to exclude the entire thread and body.\r
125 >   emacs: Add `notmuch-user-all-email'.\r
126 >   emacs: Add an address completer in elisp.\r
127 >\r
128 >  emacs/notmuch-address.el | 49 +++++++++++++++++++++++++++++++++++++++++++-----\r
129 >  emacs/notmuch-lib.el     |  4 ++++\r
130 >  emacs/notmuch-query.el   |  7 ++++++-\r
131 >  3 files changed, 54 insertions(+), 6 deletions(-)\r
132 >\r
133 > -- \r
134 > 1.8.5.2 (Apple Git-48)\r
135 >\r
136 > _______________________________________________\r
137 > notmuch mailing list\r
138 > notmuch@notmuchmail.org\r
139 > http://notmuchmail.org/mailman/listinfo/notmuch\r