Re: [PATCH] Automatically exclude tags in notmuch-show
[notmuch-archives.git] / 28 / d86659405def0ac4b520948885391700c41b78
1 Return-Path: <amdragon@mit.edu>\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 981F1429E54\r
6         for <notmuch@notmuchmail.org>; Sun, 22 Jan 2012 09:31:50 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\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 diTkA-XCLZ7Z for <notmuch@notmuchmail.org>;\r
16         Sun, 22 Jan 2012 09:31:50 -0800 (PST)\r
17 Received: from dmz-mailsec-scanner-4.mit.edu (DMZ-MAILSEC-SCANNER-4.MIT.EDU\r
18         [18.9.25.15])\r
19         by olra.theworths.org (Postfix) with ESMTP id 1C0F8429E40\r
20         for <notmuch@notmuchmail.org>; Sun, 22 Jan 2012 09:31:50 -0800 (PST)\r
21 X-AuditID: 1209190f-b7f8a6d000000914-29-4f1c480569e8\r
22 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
23         by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id A6.37.02324.5084C1F4; Sun, 22 Jan 2012 12:31:49 -0500 (EST)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id q0MHVnnK020140; \r
27         Sun, 22 Jan 2012 12:31:49 -0500\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
29         (authenticated bits=0)\r
30         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
31         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q0MHVmoW021878\r
32         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
33         Sun, 22 Jan 2012 12:31:48 -0500 (EST)\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
35         (envelope-from <amdragon@mit.edu>)\r
36         id 1Rp1GD-0001js-W9; Sun, 22 Jan 2012 12:31:22 -0500\r
37 Date: Sun, 22 Jan 2012 12:31:21 -0500\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: Mark Walters <markwalters1009@gmail.com>\r
40 Subject: Re: [PATCH] Automatically exclude tags in notmuch-show\r
41 Message-ID: <20120122173121.GP16740@mit.edu>\r
42 References: <874nvric7c.fsf@qmul.ac.uk>\r
43         <1327010583-23954-1-git-send-email-markwalters1009@gmail.com>\r
44         <20120119225910.GT16740@mit.edu> <871uqvgrnm.fsf@qmul.ac.uk>\r
45         <20120120171801.GA16740@mit.edu> <87sjj8efkv.fsf@qmul.ac.uk>\r
46 MIME-Version: 1.0\r
47 Content-Type: text/plain; charset=us-ascii\r
48 Content-Disposition: inline\r
49 In-Reply-To: <87sjj8efkv.fsf@qmul.ac.uk>\r
50 User-Agent: Mutt/1.5.21 (2010-09-15)\r
51 X-Brightmail-Tracker:\r
52  H4sIAAAAAAAAA+NgFmphleLIzCtJLcpLzFFi42IRYrdT12X1kPE3uL5UyGL1XB6L6zdnMjsw\r
53         eeycdZfd49mqW8wBTFFcNimpOZllqUX6dglcGUdf/GQqeMRZMeH2KsYGxofsXYycHBICJhKH\r
54         929ghbDFJC7cW8/WxcjFISSwj1Hi1KnF7BDOBkaJq/NXs0I4J5kk5k9bwQjhLGGUWDWjjwWk\r
55         n0VAVeLr5N+MIDabgIbEtv3LwWwRAR2J24cWgO1jFpCW+Pa7mQnEFhawl5i8dDEziM0LVDPp\r
56         6lWooS8ZJbq657JCJAQlTs58wgLRrCVx499LoGYOsEHL/3GAhDmBdn38dw+sXFRARWLKyW1s\r
57         ExiFZiHpnoWkexZC9wJG5lWMsim5Vbq5iZk5xanJusXJiXl5qUW6Jnq5mSV6qSmlmxhBgc0p\r
58         yb+D8dtBpUOMAhyMSjy8WbIy/kKsiWXFlbmHGCU5mJREeZucgUJ8SfkplRmJxRnxRaU5qcWH\r
59         GCU4mJVEeJ0/S/sL8aYkVlalFuXDpKQ5WJTEedW03vkJCaQnlqRmp6YWpBbBZGU4OJQkeKe7\r
60         Aw0VLEpNT61Iy8wpQUgzcXCCDOcBGt4NUsNbXJCYW5yZDpE/xagoJc5bApIQAElklObB9cIS\r
61         zytGcaBXhHnTQKp4gEkLrvsV0GAmoMEceVIgg0sSEVJSDYxCUxPWB+x2yRP1N3FRjFJ7ctBR\r
62         RfaabGrfQ7EH/Ds7Nj5hKIouiF+/3TLsbtjS3x1MQpWX95Vl53cb6aoo2Od8Wn1527NFCl/O\r
63         XBKbqFbRys76/bPxpL2NSse2rnpgENd0lPeryTLmF2VZF3MZdvRzVnv3nbzD/eih9ZYf0rPr\r
64         3XbF5cp9rlViKc5INNRiLipOBACK958sFwMAAA==\r
65 Cc: notmuch@notmuchmail.org\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: Sun, 22 Jan 2012 17:31:50 -0000\r
79 \r
80 Quoth Mark Walters on Jan 22 at 12:38 am:\r
81\r
82 > On Fri, 20 Jan 2012 12:18:01 -0500, Austin Clements <amdragon@MIT.EDU> wrote:\r
83 > > \r
84 > > Oh dear.\r
85 > > \r
86 > > Well, here's one idea.  Instead of doing a single thread query in\r
87 > > show, do a thread query without the exclusions and then a message\r
88 > > query with the exclusions.  Output all of the messages from the first\r
89 > > query, but use the results of the second query to determine which\r
90 > > messages are "matched".  The same could be accomplished in the library\r
91 > > somewhat more efficiently, but it's not obvious to me what the API\r
92 > > would be.\r
93\r
94 > I have been thinking about this and one question is what should the sort\r
95 > order be? If I understand it correctly notmuch sorts the threads\r
96 > by the oldest/newest matching message, so the "correct" behaviour if no\r
97 > message matches is unclear. Perhaps all threads with a matching\r
98 > non-excluded message sorted by the matching-non-excluded message\r
99 > followed by all threads that match only on excluded messages with sort\r
100 > based on the matching excluded message?\r
101 \r
102 I don't think show sorts in any particular way.  Or are you saying\r
103 that search also needs to know the difference between excluded and\r
104 non-excluded matched messages?\r