Re: Inheriting tags from parent
[notmuch-archives.git] / d1 / 12b1ab1cb2a5ac2b30934303943e41d4cc1e60
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 2856D431FD0\r
6         for <notmuch@notmuchmail.org>; Mon, 11 Jul 2011 14:05:47 -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: -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 4v44z8EdA6hA for <notmuch@notmuchmail.org>;\r
16         Mon, 11 Jul 2011 14:05:45 -0700 (PDT)\r
17 Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU\r
18         [18.9.25.14])\r
19         by olra.theworths.org (Postfix) with ESMTP id 7A8DA431FB6\r
20         for <notmuch@notmuchmail.org>; Mon, 11 Jul 2011 14:05:45 -0700 (PDT)\r
21 X-AuditID: 1209190e-b7c39ae000000a8c-e2-4e1b65798714\r
22 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])\r
23         by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id 19.D7.02700.9756B1E4; Mon, 11 Jul 2011 17:04:57 -0400 (EDT)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id p6BL5i06013234; \r
27         Mon, 11 Jul 2011 17:05:44 -0400\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 p6BL5gBx007694\r
32         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
33         Mon, 11 Jul 2011 17:05:44 -0400 (EDT)\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.72)\r
35         (envelope-from <amdragon@mit.edu>)\r
36         id 1QgNfY-0003Ar-8U; Mon, 11 Jul 2011 17:05:32 -0400\r
37 Date: Mon, 11 Jul 2011 17:05:32 -0400\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: Pieter Praet <pieter@praet.org>\r
40 Subject: Re: [PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'\r
41 Message-ID: <20110711210532.GC25558@mit.edu>\r
42 References: <20110705214234.GA15360@mit.edu>\r
43         <1310416993-31031-1-git-send-email-pieter@praet.org>\r
44 MIME-Version: 1.0\r
45 Content-Type: text/plain; charset=us-ascii\r
46 Content-Disposition: inline\r
47 In-Reply-To: <1310416993-31031-1-git-send-email-pieter@praet.org>\r
48 User-Agent: Mutt/1.5.20 (2009-06-14)\r
49 X-Brightmail-Tracker:\r
50  H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42IRYrdT0a1MlfYzuLvE2OL6zZnMFr9f32B2\r
51         YPJ4tuoWs0fHvsusAUxRXDYpqTmZZalF+nYJXBln35oW7OGo2PjvKGMD4yO2LkZODgkBE4nF\r
52         Xa3MELaYxIV764HiXBxCAvsYJY497mWCcDYwSixbdpIFwjnJJHFwwWpGCGcJo0TP08/sIP0s\r
53         AqoSW05cBrPZBDQktu1fzghiiwgoS5x+8hMsziygJbF14wewuLCAt0TfirNgNq+AjsSViQ9Z\r
54         QWwhgWSJVfcPsELEBSVOznzCAtN7499LoJM4gGxpieX/OEDCnAKOEm2bloK9ICqgInFtfzvb\r
55         BEahWUi6ZyHpnoXQvYCReRWjbEpulW5uYmZOcWqybnFyYl5eapGusV5uZoleakrpJkZQWHNK\r
56         8u1g/HpQ6RCjAAejEg/vKmlpPyHWxLLiytxDjJIcTEqivA0pQCG+pPyUyozE4oz4otKc1OJD\r
57         jBIczEoivLvZgXK8KYmVValF+TApaQ4WJXHeKO//vkIC6YklqdmpqQWpRTBZGQ4OJQleFmD8\r
58         CgkWpaanVqRl5pQgpJk4OEGG8wAN/wKymLe4IDG3ODMdIn+KUVFKnPchSEIAJJFRmgfXC0s7\r
59         rxjFgV4R5j0JUsUDTFlw3a+ABjMBDX4tLQkyuCQRISXVwGjD1HRMLsovueex6v3ZE4+5rH1u\r
60         U9CnHtgyc/1NoaPrHkbr7dzmOqd28bHFxxc7zr+1laHmzSnrM0+Lr7QUfwkRbsjhurF+TVIM\r
61         /5+9y3Tclc2qpTaoXTzg3mj7Z4Uc42kmxvStModro/cuYthQLzSb5dObbU0XTrp0ND9dtKdP\r
62         9JT6uZV2my8qsRRnJBpqMRcVJwIAU76f5BYDAAA=\r
63 Cc: Notmuch Mail <notmuch@notmuchmail.org>\r
64 X-BeenThere: notmuch@notmuchmail.org\r
65 X-Mailman-Version: 2.1.13\r
66 Precedence: list\r
67 List-Id: "Use and development of the notmuch mail system."\r
68         <notmuch.notmuchmail.org>\r
69 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
70         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
71 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
72 List-Post: <mailto:notmuch@notmuchmail.org>\r
73 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
74 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
75         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
76 X-List-Received-Date: Mon, 11 Jul 2011 21:05:47 -0000\r
77 \r
78 Quoth Pieter Praet on Jul 11 at 10:43 pm:\r
79 > TL;DR: I can haz regex pl0x?\r
80 \r
81 Oof, what a pain.  I'm happy to change the output format of search; I\r
82 hadn't realized how difficult it would be to parse.  In fact, I'm not\r
83 sure it's even parsable by regexp, because the message ID's themselves\r
84 could contain parens.\r
85 \r
86 So what would be a good format?  One possibility would be to\r
87 NULL-delimit the query part; as distasteful as I find that, this part\r
88 of the search output isn't meant for user consumption.  Though I fear\r
89 this is endemic to the dual role the search output currently plays as\r
90 both user and computer readable.\r
91 \r
92 I've also got the code to do everything using document ID's instead of\r
93 message ID's.  As a side-effect, it makes the search output clean and\r
94 readily parsable since document ID's are just numbers.  Hence, there\r
95 are no quoting or escaping issues (plus the output is much more\r
96 compact).  I haven't sent this to the list yet because I haven't had a\r
97 chance to benchmark it and determine if the performance benefits make\r
98 exposing document ID's worthwhile.\r