Re: [PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'
authorAustin Clements <amdragon@MIT.EDU>
Mon, 11 Jul 2011 21:05:32 +0000 (17:05 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:05 +0000 (09:39 -0800)
d1/12b1ab1cb2a5ac2b30934303943e41d4cc1e60 [new file with mode: 0644]

diff --git a/d1/12b1ab1cb2a5ac2b30934303943e41d4cc1e60 b/d1/12b1ab1cb2a5ac2b30934303943e41d4cc1e60
new file mode 100644 (file)
index 0000000..c45c72d
--- /dev/null
@@ -0,0 +1,98 @@
+Return-Path: <amdragon@mit.edu>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 2856D431FD0\r
+       for <notmuch@notmuchmail.org>; Mon, 11 Jul 2011 14:05:47 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 4v44z8EdA6hA for <notmuch@notmuchmail.org>;\r
+       Mon, 11 Jul 2011 14:05:45 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU\r
+       [18.9.25.14])\r
+       by olra.theworths.org (Postfix) with ESMTP id 7A8DA431FB6\r
+       for <notmuch@notmuchmail.org>; Mon, 11 Jul 2011 14:05:45 -0700 (PDT)\r
+X-AuditID: 1209190e-b7c39ae000000a8c-e2-4e1b65798714\r
+Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])\r
+       by dmz-mailsec-scanner-3.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id 19.D7.02700.9756B1E4; Mon, 11 Jul 2011 17:04:57 -0400 (EDT)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+       by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id p6BL5i06013234; \r
+       Mon, 11 Jul 2011 17:05:44 -0400\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+       (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id p6BL5gBx007694\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Mon, 11 Jul 2011 17:05:44 -0400 (EDT)\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.72)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1QgNfY-0003Ar-8U; Mon, 11 Jul 2011 17:05:32 -0400\r
+Date: Mon, 11 Jul 2011 17:05:32 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: Pieter Praet <pieter@praet.org>\r
+Subject: Re: [PATCH v2] emacs: bad regexp @ `notmuch-search-process-filter'\r
+Message-ID: <20110711210532.GC25558@mit.edu>\r
+References: <20110705214234.GA15360@mit.edu>\r
+       <1310416993-31031-1-git-send-email-pieter@praet.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+In-Reply-To: <1310416993-31031-1-git-send-email-pieter@praet.org>\r
+User-Agent: Mutt/1.5.20 (2009-06-14)\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42IRYrdT0a1MlfYzuLvE2OL6zZnMFr9f32B2\r
+       YPJ4tuoWs0fHvsusAUxRXDYpqTmZZalF+nYJXBln35oW7OGo2PjvKGMD4yO2LkZODgkBE4nF\r
+       Xa3MELaYxIV764HiXBxCAvsYJY497mWCcDYwSixbdpIFwjnJJHFwwWpGCGcJo0TP08/sIP0s\r
+       AqoSW05cBrPZBDQktu1fzghiiwgoS5x+8hMsziygJbF14wewuLCAt0TfirNgNq+AjsSViQ9Z\r
+       QWwhgWSJVfcPsELEBSVOznzCAtN7499LoJM4gGxpieX/OEDCnAKOEm2bloK9ICqgInFtfzvb\r
+       BEahWUi6ZyHpnoXQvYCReRWjbEpulW5uYmZOcWqybnFyYl5eapGusV5uZoleakrpJkZQWHNK\r
+       8u1g/HpQ6RCjAAejEg/vKmlpPyHWxLLiytxDjJIcTEqivA0pQCG+pPyUyozE4oz4otKc1OJD\r
+       jBIczEoivLvZgXK8KYmVValF+TApaQ4WJXHeKO//vkIC6YklqdmpqQWpRTBZGQ4OJQleFmD8\r
+       CgkWpaanVqRl5pQgpJk4OEGG8wAN/wKymLe4IDG3ODMdIn+KUVFKnPchSEIAJJFRmgfXC0s7\r
+       rxjFgV4R5j0JUsUDTFlw3a+ABjMBDX4tLQkyuCQRISXVwGjD1HRMLsovueex6v3ZE4+5rH1u\r
+       U9CnHtgyc/1NoaPrHkbr7dzmOqd28bHFxxc7zr+1laHmzSnrM0+Lr7QUfwkRbsjhurF+TVIM\r
+       /5+9y3Tclc2qpTaoXTzg3mj7Z4Uc42kmxvStModro/cuYthQLzSb5dObbU0XTrp0ND9dtKdP\r
+       9JT6uZV2my8qsRRnJBpqMRcVJwIAU76f5BYDAAA=\r
+Cc: Notmuch Mail <notmuch@notmuchmail.org>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 11 Jul 2011 21:05:47 -0000\r
+\r
+Quoth Pieter Praet on Jul 11 at 10:43 pm:\r
+> TL;DR: I can haz regex pl0x?\r
+\r
+Oof, what a pain.  I'm happy to change the output format of search; I\r
+hadn't realized how difficult it would be to parse.  In fact, I'm not\r
+sure it's even parsable by regexp, because the message ID's themselves\r
+could contain parens.\r
+\r
+So what would be a good format?  One possibility would be to\r
+NULL-delimit the query part; as distasteful as I find that, this part\r
+of the search output isn't meant for user consumption.  Though I fear\r
+this is endemic to the dual role the search output currently plays as\r
+both user and computer readable.\r
+\r
+I've also got the code to do everything using document ID's instead of\r
+message ID's.  As a side-effect, it makes the search output clean and\r
+readily parsable since document ID's are just numbers.  Hence, there\r
+are no quoting or escaping issues (plus the output is much more\r
+compact).  I haven't sent this to the list yet because I haven't had a\r
+chance to benchmark it and determine if the performance benefits make\r
+exposing document ID's worthwhile.\r