Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 4e / 6813a5e39039ec1307aa6ade1a751a5aadf862
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 A4D14431FD7\r
6         for <notmuch@notmuchmail.org>; Tue, 12 Nov 2013 11:40:03 -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 xOuby75+TVPE for <notmuch@notmuchmail.org>;\r
16         Tue, 12 Nov 2013 11:39:56 -0800 (PST)\r
17 Received: from dmz-mailsec-scanner-1.mit.edu (dmz-mailsec-scanner-1.mit.edu\r
18         [18.9.25.12])\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 077B6431FD2\r
22         for <notmuch@notmuchmail.org>; Tue, 12 Nov 2013 11:39:55 -0800 (PST)\r
23 X-AuditID: 1209190c-b7f7f6d000000bbd-31-5282840ba95a\r
24 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])\r
25         (using TLS with cipher AES256-SHA (256/256 bits))\r
26         (Client did not present a certificate)\r
27         by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP\r
28         id A9.08.03005.B0482825; Tue, 12 Nov 2013 14:39:55 -0500 (EST)\r
29 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
30         by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id rACJdrBe001174; \r
31         Tue, 12 Nov 2013 14:39:54 -0500\r
32 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
33         (authenticated bits=0)\r
34         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
35         by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id rACJdqxH004710\r
36         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);\r
37         Tue, 12 Nov 2013 14:39:53 -0500\r
38 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80)\r
39         (envelope-from <amdragon@mit.edu>)\r
40         id 1VgJoW-000672-5s; Tue, 12 Nov 2013 14:39:52 -0500\r
41 From: Austin Clements <aclements@csail.mit.edu>\r
42 To: Peter Zijlstra <peterz@infradead.org>, notmuch@notmuchmail.org\r
43 Subject: Re: [PATCH] notmuch: Add "maildir:" search option\r
44 In-Reply-To: <87mwl94dte.fsf@awakening.csail.mit.edu>\r
45 References: <20131112155637.GA16796@laptop.programming.kicks-ass.net>\r
46         <87mwl94dte.fsf@awakening.csail.mit.edu>\r
47 User-Agent: Notmuch/0.16+154~g96c0ce2 (http://notmuchmail.org) Emacs/23.4.1\r
48         (i486-pc-linux-gnu)\r
49 Date: Tue, 12 Nov 2013 14:39:52 -0500\r
50 Message-ID: <87k3gd4dfb.fsf@awakening.csail.mit.edu>\r
51 MIME-Version: 1.0\r
52 Content-Type: text/plain; charset=us-ascii\r
53 X-Brightmail-Tracker:\r
54  H4sIAAAAAAAAA+NgFrrLIsWRmVeSWpSXmKPExsUixG6nosvd0hRksOIfv8X1mzOZLY73HmBy\r
55         YPLYvELL49mqW8wBTFFcNimpOZllqUX6dglcGUtXnWQr2MBRcfvID8YGxg9sXYycHBICJhKd\r
56         Bw8zQthiEhfurQeKc3EICcxmkljSNp8ZwtnIKNH7/g6Uc5pJYt/KBrAWIYEljBJXnkiC2GwC\r
57         +hIr1k5iBbFFBJwk7n6aCmRzcAgLWEns35UEYnIKmEqsmFUA0ZkncbD/OROILSoQLzFt4U5m\r
58         EJtFQFXi6cQmRpByXpDj1oKV8AoISpyc+YQFxGYW0JK48e8l0wRGgVlIUrOQpBYwMq1ilE3J\r
59         rdLNTczMKU5N1i1OTszLSy3SNdTLzSzRS00p3cQICkVOSZ4djG8OKh1iFOBgVOLhfRDZFCTE\r
60         mlhWXJl7iFGSg0lJlNe4DijEl5SfUpmRWJwRX1Sak1p8iFGCg1lJhNehFijHm5JYWZValA+T\r
61         kuZgURLnvclhHyQkkJ5YkpqdmlqQWgSTleHgUJLgZaoHahQsSk1PrUjLzClBSDNxcIIM5wEa\r
62         XtoIMry4IDG3ODMdIn+KUVFKnFetCSghAJLIKM2D64WlileM4kCvCPPmgqzgAaYZuO5XQIOZ\r
63         gAZbFIMNLklESEk1MJbPU/dn32N7q9pyHdPelw5aCbrGk0LXX/wgtvuBd9y3aR2Pc7+s2PV8\r
64         kr3npMA53RopvYnF9z6875F1/MP60tXWOt5F59lL9SaGKJfKz0EnYz6oHbBQydkZLbOv4ZDJ\r
65         9Pm68wK+Btc0LNTZe8HvSMa9XivX2oK9djJNvEt+bJg66TITO/eWz0osxRmJhlrMRcWJAJ3U\r
66         kWHwAgAA\r
67 X-BeenThere: notmuch@notmuchmail.org\r
68 X-Mailman-Version: 2.1.13\r
69 Precedence: list\r
70 List-Id: "Use and development of the notmuch mail system."\r
71         <notmuch.notmuchmail.org>\r
72 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
73         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
74 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
75 List-Post: <mailto:notmuch@notmuchmail.org>\r
76 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
77 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
78         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
79 X-List-Received-Date: Tue, 12 Nov 2013 19:40:03 -0000\r
80 \r
81 On Tue, 12 Nov 2013, Austin Clements <aclements@csail.mit.edu> wrote:\r
82 > I think this is a great idea.  Personally I think this is how folder:\r
83 > should work.  I find the semantics of folder: to be useless except where\r
84 > they happen to coincide with the boolean semantics used here.\r
85 > Unfortunately, changing folder: would require versioning the database,\r
86 > which we have only primordial support for right now.\r
87 >\r
88 > Various comments below, though nothing major.  Of course, we'd also need\r
89 > some tests and man page updates for this.\r
90 \r
91 Sorry, one important thing I missed: this doesn't correctly handle when\r
92 file names are removed from a message\r
93 (_notmuch_message_remove_filename).  Probably the simplest thing would\r
94 be to follow the template for how folder: works by first removing *all*\r
95 folder terms and then adding back the still-valid ones.  (Unfortunately,\r
96 just removing the term for the removed filename's directory won't work\r
97 because the message could have other filenames in the same directory,\r
98 though maybe you could just scan for that possibility?)\r