[PATCH 2/3] emacs: Escape tag queries performed by hello
authorAustin Clements <amdragon@MIT.EDU>
Fri, 26 Oct 2012 20:18:11 +0000 (16:18 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:50:03 +0000 (09:50 -0800)
48/1d974ae9f0dc81bb8ba390741857f01d679c1d [new file with mode: 0644]

diff --git a/48/1d974ae9f0dc81bb8ba390741857f01d679c1d b/48/1d974ae9f0dc81bb8ba390741857f01d679c1d
new file mode 100644 (file)
index 0000000..698feb4
--- /dev/null
@@ -0,0 +1,91 @@
+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 BCA53431FD6\r
+       for <notmuch@notmuchmail.org>; Fri, 26 Oct 2012 13:18:29 -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 NT-tYM8rQn1Q for <notmuch@notmuchmail.org>;\r
+       Fri, 26 Oct 2012 13:18:29 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-4.mit.edu (DMZ-MAILSEC-SCANNER-4.MIT.EDU\r
+       [18.9.25.15])\r
+       by olra.theworths.org (Postfix) with ESMTP id 188AE431FC4\r
+       for <notmuch@notmuchmail.org>; Fri, 26 Oct 2012 13:18:29 -0700 (PDT)\r
+X-AuditID: 1209190f-b7f636d00000095b-1e-508af01404de\r
+Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
+       by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id FD.CD.02395.410FA805; Fri, 26 Oct 2012 16:18:28 -0400 (EDT)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+       by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id q9QKIHrp006736; \r
+       Fri, 26 Oct 2012 16:18:17 -0400\r
+Received: from drake.dyndns.org (26-4-172.dynamic.csail.mit.edu [18.26.4.172])\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 q9QKIFPr024592\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Fri, 26 Oct 2012 16:18:17 -0400 (EDT)\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1TRqMB-0002zX-86; Fri, 26 Oct 2012 16:18:15 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/3] emacs: Escape tag queries performed by hello\r
+Date: Fri, 26 Oct 2012 16:18:11 -0400\r
+Message-Id: <1351282692-11455-2-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.7.10\r
+In-Reply-To: <1351282692-11455-1-git-send-email-amdragon@mit.edu>\r
+References: <1351282692-11455-1-git-send-email-amdragon@mit.edu>\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsUixG6nrivyoSvA4PIxdYvrN2cyOzB6PFt1\r
+       izmAMYrLJiU1J7MstUjfLoErY8HhL4wF21kr5l1Zx9rAuIGli5GTQ0LAROL9tyVQtpjEhXvr\r
+       2boYuTiEBPYxStzbe5IdwtnAKLF89ReozCkmiZm7vzBDOHMZJXa9fMcI0s8moCGxbf9yMFtE\r
+       QFpi593ZrF2MHBzMAmoSf7pUQMLCAo4SDf+PMYHYLAKqEtsuv2YFsXkFHCS6rh5ihjhDXuLp\r
+       /T42kFZOoPpdiwpBwkJAJcvX9zJPYORfwMiwilE2JbdKNzcxM6c4NVm3ODkxLy+1SNdELzez\r
+       RC81pXQTIyhoOCX5dzB+O6h0iFGAg1GJh3fHk64AIdbEsuLK3EOMkhxMSqK8C58DhfiS8lMq\r
+       MxKLM+KLSnNSiw8xSnAwK4nwFh0DyvGmJFZWpRblw6SkOViUxHmvptz0FxJITyxJzU5NLUgt\r
+       gsnKcHAoSfC+fgfUKFiUmp5akZaZU4KQZuLgBBnOAzR8GUgNb3FBYm5xZjpE/hSjopQ474r3\r
+       QAkBkERGaR5cLyyqXzGKA70izOsGUsUDTAhw3a+ABjMBDRZj7QQZXJKIkJJqYOSN2FHTzLnw\r
+       yoV7wnt63vCoR+4XZv0+Xd+RMch19XZdkzQ9ey6ZOk5Wi5znnzYmvK599PUWX82JqmyOrc66\r
+       YZlMNtzMi2vZvJbFxVYm+C1YwitZ+WmanqrFQa59b76It93fL7YhbRH3gdB5Bqcurr1yJTVX\r
+       w77+S5vUHc2qKJ2rCbO+Mfh4KbEUZyQaajEXFScCAGSS7wDFAgAA\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: Fri, 26 Oct 2012 20:18:30 -0000\r
+\r
+---\r
+ emacs/notmuch-hello.el |    2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
+index 052aaeb..be50aae 100644\r
+--- a/emacs/notmuch-hello.el\r
++++ b/emacs/notmuch-hello.el\r
+@@ -500,7 +500,7 @@ Complete list of currently available key bindings:\r
+ (defun notmuch-hello-generate-tag-alist (&optional hide-tags)\r
+   "Return an alist from tags to queries to display in the all-tags section."\r
+   (mapcar (lambda (tag)\r
+-          (cons tag (format "tag:%s" tag)))\r
++          (cons tag (concat "tag:" (notmuch-escape-boolean-term tag))))\r
+         (notmuch-remove-if-not\r
+          (lambda (tag)\r
+            (not (member tag hide-tags)))\r
+-- \r
+1.7.10\r
+\r