[PATCH 4/4] Update NEWS for user.other_name
[notmuch-archives.git] / 3f / 76891a38cd494db43d21d6b3c19d2ebba6184d
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 4E3E7431FAF\r
6         for <notmuch@notmuchmail.org>; Fri, 13 Apr 2012 02:29:10 -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 BY87sy-FVfvp for <notmuch@notmuchmail.org>;\r
17         Fri, 13 Apr 2012 02:29:08 -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 9F103431FAE\r
22         for <notmuch@notmuchmail.org>; Fri, 13 Apr 2012 02:29:08 -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 1SIcoP-0005IA-MN; Fri, 13 Apr 2012 10:29:02 +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 1SIcoP-0007ik-70; Fri, 13 Apr 2012 10:29:01 +0100\r
32 From: Mark Walters <markwalters1009@gmail.com>\r
33 To: Jani Nikula <jani@nikula.org>, Tomi Ollila <tomi.ollila@iki.fi>,\r
34         Jameson Graef Rollins <jrollins@finestructure.net>, notmuch@notmuchmail.org\r
35 Subject: Re: [PATCH] emacs-show: open excluded matches if no other matches\r
36 In-Reply-To: <87k41kj9g6.fsf@nikula.org>\r
37 References: <1331836090-30560-1-git-send-email-markwalters1009@gmail.com>\r
38         <8762d44vkv.fsf@servo.finestructure.net>\r
39         <m2ty0odaej.fsf@guru.guru-group.fi> <87k41kj9g6.fsf@nikula.org>\r
40 User-Agent: Notmuch/0.12+110~gbc97b4a (http://notmuchmail.org) Emacs/23.3.1\r
41         (x86_64-pc-linux-gnu)\r
42 Date: Fri, 13 Apr 2012 10:29:19 +0100\r
43 Message-ID: <87fwc80ykw.fsf@qmul.ac.uk>\r
44 MIME-Version: 1.0\r
45 Content-Type: text/plain; charset=us-ascii\r
46 X-Sender-Host-Address: 94.192.233.223\r
47 X-QM-SPAM-Info: Sender has good ham record.  :)\r
48 X-QM-Body-MD5: 07cb8ff1279e44b1bf2690591dd4169e (of first 20000 bytes)\r
49 X-SpamAssassin-Score: -1.8\r
50 X-SpamAssassin-SpamBar: -\r
51 X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
52         determine if it is\r
53         spam. We require at least 5.0 points to mark a message as spam.\r
54         This message scored -1.8 points.\r
55         Summary of the scoring: \r
56         * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\r
57         *      medium trust\r
58         *      [138.37.6.40 listed in list.dnswl.org]\r
59         * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
60         provider *      (markwalters1009[at]gmail.com)\r
61         * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay\r
62         *      domain\r
63         *  0.5 AWL AWL: From: address is in the auto white-list\r
64 X-QM-Scan-Virus: ClamAV says the message is clean\r
65 X-BeenThere: notmuch@notmuchmail.org\r
66 X-Mailman-Version: 2.1.13\r
67 Precedence: list\r
68 List-Id: "Use and development of the notmuch mail system."\r
69         <notmuch.notmuchmail.org>\r
70 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
71         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
72 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
73 List-Post: <mailto:notmuch@notmuchmail.org>\r
74 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
75 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
76         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
77 X-List-Received-Date: Fri, 13 Apr 2012 09:29:10 -0000\r
78 \r
79 On Fri, 13 Apr 2012, Jani Nikula <jani@nikula.org> wrote:\r
80 > On Thu, 12 Apr 2012 22:20:52 +0300, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
81 >> On Thu, Apr 12 2012, Jameson Graef Rollins wrote:\r
82 >> \r
83 >> > On Thu, Mar 15 2012, Mark Walters <markwalters1009@gmail.com> wrote:\r
84 >> >> Currently emacs show does not open matching but excluded\r
85 >> >> messages. This is normally the desired behaviour but is probably not\r
86 >> >> ideal if only excluded messages match. This patch opens all the\r
87 >> >> matching (necessarily excluded) messages in this case and goes to the\r
88 >> >> first one.\r
89 >> >\r
90 >> > Hi, Mark.  I have tested this patch and it LGTM.  I think this is the\r
91 >> > behavior we want, since it's no fun to open up a show buffer and have\r
92 >> > all messages in the thread closed.  That doesn't make much sense.\r
93 >> \r
94 >> I disagree: If I open up a show buffer I'd like to have all messages\r
95 >> in the thread closed if search terms do not match. But that is my\r
96 >> opinion and inconsistent with current behaviour.\r
97 >> \r
98 >> (Therefore I already +1:d this patch)\r
99 >> \r
100 >> An example: I have thread of 100 messages and 1 of those is unread.\r
101 >> Search terms is tag:unread. I enter the thread: 99 messages closed\r
102 >> and this one open. Now unread is automatically removed. If I go back\r
103 >> to search view (by pressing q) and re-choose the same thread,\r
104 >> current behaviour is to open all 100 messages. I'd like to see all\r
105 >> 100 messages closed.\r
106 >\r
107 > IIUC this would still show all messages closed. Messages that don't\r
108 > match will be closed. The change is that if there are messages that\r
109 > match, but all of them are excluded, then open the messages anyway.\r
110 \r
111 This patch does not affect the behaviour in this case, but the code\r
112 existing code does expand all messages in a thread if none match (the\r
113 use of basic-args and args in notmuch-show-build-buffer).\r
114 \r
115 > In your example, only if you have *another* message that is both\r
116 > tag:unread and tag:deleted (or some other excluded tag) it would show up\r
117 > the second time you enter show view.\r
118 >\r
119 > I actually think I'd still want the above to show all messages closed,\r
120 > unless the excluded tag was explicitly specified in the search. The idea\r
121 > of exclusions is to reduce "noise" in the view, why open them? If you\r
122 > have those 100 messages in a thread, and you want to see the interesting\r
123 > (i.e. non-excluded) messages, I'd rather see 0 open if 0 are\r
124 > interesting, instead of 100 non-interesting if they are all excluded.\r
125 \r
126 I think that is entirely plausible as a way to go (though I would also\r
127 be happy with the behaviour after this patch). But I think that should\r
128 be a subsequent patch because to be consistent it would have to change\r
129 the existing behaviour for no matches (and no excludes) to be all closed.\r
130 \r
131 > Perhaps a function to toggle the open/close of excluded messages would\r
132 > be a better idea. \r
133 \r
134 That might be useful regardless. I could add a function to do this,\r
135 which could be called by the above patch if we want the behaviour it\r
136 introduces. Do you think that is worth doing?\r
137 \r
138 > But then I don't use exclusions ATM, so maybe I just\r
139 > don't understand, and won't be affected either way. *shrug*.\r
140 \r
141 That is one problem: there are lots of potential use cases and its not\r
142 clear which of them people will use and which we should encourage. I use\r
143 a `bizarre' one: I exclude all of my mailing list mail (including\r
144 notmuch) so that it doesn't show up in my personal mail searches. So I\r
145 guess I am using the excludes to return to the bad old days of\r
146 `folders'. (I am  not recommending this to anyone, I partly did it as a\r
147 good stress test for the exclude stuff, but it does seem to mostly\r
148 work.)\r
149 \r
150 \r
151 Best wishes\r
152 \r
153 Mark\r
154 \r
155 \r
156 \r
157  \r
158 \r
159 \r