notmuch.el: controlling what does and doesn't get expanded in searches
[notmuch-archives.git] / 13 / a030068502df6d8d9627c22ac57cc6b8104e84
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 2574B403E35\r
6         for <notmuch@notmuchmail.org>; Mon,  9 Apr 2012 10:56:51 -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.098\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.098 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_MED=-2.3] 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 XPg0uc9rRnIz for <notmuch@notmuchmail.org>;\r
17         Mon,  9 Apr 2012 10:56:50 -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 0EF0A403E33\r
22         for <notmuch@notmuchmail.org>; Mon,  9 Apr 2012 10:56:50 -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 1SHIpX-00073N-DP; Mon, 09 Apr 2012 18:56:45 +0100\r
27 Received: from 94-192-233-223.zone6.bethere.co.uk ([94.192.233.223]\r
28         helo=localhost)\r
29         by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69)\r
30         (envelope-from <m.walters@qmul.ac.uk>)\r
31         id 1SHIpX-0003Sn-3G; Mon, 09 Apr 2012 18:56:43 +0100\r
32 From: Mark Walters <markwalters1009@gmail.com>\r
33 To: Jameson Graef Rollins <jrollins@finestructure.net>,\r
34         Notmuch Mail <notmuch@notmuchmail.org>\r
35 Subject: Re: [PATCH 2/8] emacs: update tag-completion function\r
36 In-Reply-To: <1333845338-22960-3-git-send-email-jrollins@finestructure.net>\r
37 References: <1333354853-25729-1-git-send-email-jrollins@finestructure.net>\r
38         <1333845338-22960-1-git-send-email-jrollins@finestructure.net>\r
39         <1333845338-22960-2-git-send-email-jrollins@finestructure.net>\r
40         <1333845338-22960-3-git-send-email-jrollins@finestructure.net>\r
41 User-Agent: Notmuch/0.12+111~g5c30f66 (http://notmuchmail.org) Emacs/23.3.1\r
42         (x86_64-pc-linux-gnu)\r
43 Date: Mon, 09 Apr 2012 18:57:00 +0100\r
44 Message-ID: <878vi4n5zn.fsf@qmul.ac.uk>\r
45 MIME-Version: 1.0\r
46 Content-Type: text/plain; charset=us-ascii\r
47 X-Sender-Host-Address: 94.192.233.223\r
48 X-QM-SPAM-Info: Sender has good ham record.  :)\r
49 X-QM-Body-MD5: 9d7257ed3ba7a2f97c8fe0802f6e8fd0 (of first 20000 bytes)\r
50 X-SpamAssassin-Score: -1.8\r
51 X-SpamAssassin-SpamBar: -\r
52 X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
53         determine if it is\r
54         spam. We require at least 5.0 points to mark a message as spam.\r
55         This message scored -1.8 points.\r
56         Summary of the scoring: \r
57         * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\r
58         *      medium trust\r
59         *      [138.37.6.40 listed in list.dnswl.org]\r
60         * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
61         provider *      (markwalters1009[at]gmail.com)\r
62         * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay\r
63         *      domain\r
64         *  0.5 AWL AWL: From: address is in the auto white-list\r
65 X-QM-Scan-Virus: ClamAV says the message is clean\r
66 X-BeenThere: notmuch@notmuchmail.org\r
67 X-Mailman-Version: 2.1.13\r
68 Precedence: list\r
69 List-Id: "Use and development of the notmuch mail system."\r
70         <notmuch.notmuchmail.org>\r
71 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
72         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
73 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
74 List-Post: <mailto:notmuch@notmuchmail.org>\r
75 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
76 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
77         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
78 X-List-Received-Date: Mon, 09 Apr 2012 17:56:51 -0000\r
79 \r
80 On Sun, 08 Apr 2012, Jameson Graef Rollins <jrollins@finestructure.net> wrote:\r
81 > "search-tags" is deprecated, so we move to the more modern and\r
82 > supported "search --output=tags".\r
83 > ---\r
84 >  emacs/notmuch-tag.el |    2 +-\r
85 >  1 files changed, 1 insertions(+), 1 deletions(-)\r
86 >\r
87 > diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el\r
88 > index 81b4b00..5240d13 100644\r
89 > --- a/emacs/notmuch-tag.el\r
90 > +++ b/emacs/notmuch-tag.el\r
91 > @@ -59,7 +59,7 @@ the messages that were tagged"\r
92 >     (with-output-to-string\r
93 >       (with-current-buffer standard-output\r
94 >         (apply 'call-process notmuch-command nil t\r
95 > -           nil "search-tags" search-terms)))\r
96 > +           nil "search" "--output=tags" search-terms)))\r
97 \r
98 Perhaps make this \r
99   + nil "search" "--output=tags" "--exclude=false" search-terms)))\r
100 \r
101 to fix the existing bug that if the message is excluded the completion\r
102 can get confused. Or I can submit that separately if you prefer.\r
103 \r
104 Best wishes\r
105 \r
106 Mark\r
107 \r
108 >     "\n+" t))\r
109 >  \r
110 >  (defun notmuch-select-tag-with-completion (prompt &rest search-terms)\r
111 > -- \r
112 > 1.7.9.1\r
113 >\r
114 > _______________________________________________\r
115 > notmuch mailing list\r
116 > notmuch@notmuchmail.org\r
117 > http://notmuchmail.org/mailman/listinfo/notmuch\r