database error
[notmuch-archives.git] / 6a / 13a05fbcae28d145a0ad8079a679e9ac16d939
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 38B05431FD0\r
6         for <notmuch@notmuchmail.org>; Sun,  8 Jan 2012 17:49:28 -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 IgZnkpP4tL9a for <notmuch@notmuchmail.org>;\r
16         Sun,  8 Jan 2012 17:49:27 -0800 (PST)\r
17 Received: from dmz-mailsec-scanner-7.mit.edu (DMZ-MAILSEC-SCANNER-7.MIT.EDU\r
18         [18.7.68.36])\r
19         by olra.theworths.org (Postfix) with ESMTP id BADFB431FB6\r
20         for <notmuch@notmuchmail.org>; Sun,  8 Jan 2012 17:49:27 -0800 (PST)\r
21 X-AuditID: 12074424-b7fae6d000000906-94-4f0a47a6ecf4\r
22 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
23         by dmz-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id A4.3F.02310.6A74A0F4; Sun,  8 Jan 2012 20:49:26 -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 q091nP4q004806; \r
27         Sun, 8 Jan 2012 20:49:26 -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 q091nOml006362\r
32         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
33         Sun, 8 Jan 2012 20:49:25 -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 1Rk4Mk-0005xP-SA; Sun, 08 Jan 2012 20:49:38 -0500\r
37 Date: Sun, 8 Jan 2012 20:49:38 -0500\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: Aaron Ecay <aaronecay@gmail.com>\r
40 Subject: Re: [PATCH 1/4] emacs: new customization variable to exclude\r
41         "deleted" messages from search\r
42 Message-ID: <20120109014938.GE20796@mit.edu>\r
43 References: <1325975294-646-1-git-send-email-jrollins@finestructure.net>\r
44         <1325975294-646-2-git-send-email-jrollins@finestructure.net>\r
45         <m2wr91ismu.fsf@gmail.com>\r
46 MIME-Version: 1.0\r
47 Content-Type: text/plain; charset=utf-8\r
48 Content-Disposition: inline\r
49 Content-Transfer-Encoding: 8bit\r
50 In-Reply-To: <m2wr91ismu.fsf@gmail.com>\r
51 User-Agent: Mutt/1.5.21 (2010-09-15)\r
52 X-Brightmail-Tracker:\r
53  H4sIAAAAAAAAA+NgFlrKKsWRmVeSWpSXmKPExsUixG6nrrvMncvf4GGzmsW05V/YLfbs87K4\r
54         fnMmswOzx93TXB47Z91l93i26hZzAHMUl01Kak5mWWqRvl0CV8afkzOZCh5wVHyYv4mtgbGN\r
55         vYuRk0NCwETi/NynULaYxIV769m6GLk4hAT2MUrcWz6HEcJZzyhxpHMnK4Rzgkni75VXUGVL\r
56         GCU6uv+xgfSzCKhIHH/XxgRiswloSGzbv5wRxBYBis+eNx/MZhZIl7i8fQdYvbBAmsS1qYvB\r
57         dvMK6Ej8fXWQBW5o29wGRoiEoMTJmU9YIJrVJf7Mu8TcxcgBZEtLLP/HARGWl2jeOpsZxOYE\r
58         KrnQugrsBlGgvVNObmObwCg8C8mkWUgmzUKYNAvJpAWMLKsYZVNyq3RzEzNzilOTdYuTE/Py\r
59         Uot0zfVyM0v0UlNKNzGCY8NFZQdj8yGlQ4wCHIxKPLwCNlz+QqyJZcWVuYcYJTmYlER5T7sC\r
60         hfiS8lMqMxKLM+KLSnNSiw8xSnAwK4nwCpgB5XhTEiurUovyYVLSHCxK4rwaWu/8hATSE0tS\r
61         s1NTC1KLYLIyHBxKErxH3IAaBYtS01Mr0jJzShDSTBycIMN5gIafB6nhLS5IzC3OTIfIn2JU\r
62         lBLnFQImHyEBkERGaR5cLyx1vWIUB3pFmPcMSDsPMO3Bdb8CGswENPjBH3aQwSWJCCmpBkae\r
63         2CM+em/mpFzUf93g/+mlcebWK5O6E07On513msFovYvhPO/wQqmS+PBrUzeFsR4xWpZVuF50\r
64         zpm1oW+TLjKfz1xz5e92BeFXltdiH8ld2il3wn3ev7O7uTIulDKV8yVVyazd2LrVXK9Jbom0\r
65         +a5+/z25N8v3/ZRZK70pJEhQceEV0R1BSSFKLMUZiYZazEXFiQCJg6x2OAMAAA==\r
66 Cc: Notmuch Mail <notmuch@notmuchmail.org>\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: Mon, 09 Jan 2012 01:49:28 -0000\r
80 \r
81 > > @@ -927,6 +932,9 @@ The optional parameters are used as follows:\r
82 > >      (set 'notmuch-search-target-thread target-thread)\r
83 > >      (set 'notmuch-search-target-line target-line)\r
84 > >      (set 'notmuch-search-continuation continuation)\r
85 > > +    (when (and notmuch-search-exclude-deleted\r
86 > > +          (not (string-match "tag:deleted[ )]*" query)))\r
87\r
88 > “is:” is a synonym for “tag:” in searches – so this section of the code\r
89 > should look for it too.\r
90 \r
91 There are several other things that could also trip up this regexp.\r
92 xtag:deletedx would be falsely matched, as would a quoted phrase\r
93 containing "tag:deleted", while tag:"deleted" and tag:(deleted) would\r
94 incorrectly not be matched.  Getting this right is hard, though I'd be\r
95 happy with\r
96 \r
97   "\\<\\(tag\\|is\\):deleted\\>"\r
98 \r
99 or maybe\r
100 \r
101   "\\<\\(tag\\|is\\):\\(\"?\\)deleted\\>\\2"\r
102 \r
103 Implicit exclusions like this were actually one of my target features\r
104 for the custom query parser, but I think hacking around that by\r
105 inspecting the query string is a fine interim solution.  (One of these\r
106 months I'll dust off the query parser, really!)\r