--- /dev/null
+Return-Path: <james@hackervisions.org>\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 92C5B431FAF\r
+ for <notmuch@notmuchmail.org>; Mon, 29 Oct 2012 14:19:46 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.01\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.01 tagged_above=-999 required=5\r
+ tests=[T_MIME_NO_TEXT=0.01] 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 mLplxX8ylsxa for <notmuch@notmuchmail.org>;\r
+ Mon, 29 Oct 2012 14:19:46 -0700 (PDT)\r
+Received: from mail.sflc.info (mail.sflc.info [207.86.247.70])\r
+ (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 124C4431FBC\r
+ for <notmuch@notmuchmail.org>; Mon, 29 Oct 2012 14:19:46 -0700 (PDT)\r
+Received: from localhost (ool-457af02d.dyn.optonline.net [69.122.240.45])\r
+ by mail.sflc.info (Postfix) with ESMTPSA id 07F35B4C018;\r
+ Mon, 29 Oct 2012 21:19:44 +0000 (UTC)\r
+From: James Vasile <james@hackervisions.org>\r
+To: David Bremner <david@tethera.net>,\r
+ notmuch mailing list <notmuch@notmuchmail.org>\r
+Subject: Re: [PATCH] don't show x-foo tags in search view\r
+In-Reply-To: <87liepw0b4.fsf@convex-new.cs.unb.ca>\r
+References: <87fw4x3y3e.fsf@hackervisions.org>\r
+ <87liepw0b4.fsf@convex-new.cs.unb.ca>\r
+User-Agent: Notmuch/0.12+139~g3c998ca (http://notmuchmail.org) Emacs/23.4.1\r
+ (i486-pc-linux-gnu)\r
+Date: Mon, 29 Oct 2012 17:19:42 -0400\r
+Message-ID: <87625tc6xd.fsf@hackervisions.org>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+ micalg=pgp-sha1; protocol="application/pgp-signature"\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, 29 Oct 2012 21:19:46 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+This patch hides any tags in search view that match the regex specified\r
+in `notmuch-search-hide-tag-regex`. That variable can be set via setq\r
+or the customize interface. To hide all tags that begin with "x-" or\r
+"X-", set `notmuch-search-hide-tag-regex` to "^X-".\r
+\r
+=2D--\r
+ emacs/notmuch.el | 16 +++++++++++++++-\r
+ 1 file changed, 15 insertions(+), 1 deletion(-)\r
+\r
+diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
+index f9454d8..4bff538 100644\r
+=2D-- a/emacs/notmuch.el\r
++++ b/emacs/notmuch.el\r
+@@ -775,6 +775,14 @@ non-authors is found, assume that all of the authors m=\r
+atch."\r
+ (overlay-put overlay 'isearch-open-invisible #'delete-overlay)))\r
+ (insert padding))))\r
+=20\r
++(defcustom notmuch-search-hide-tag-regex ""\r
++ "Regex specifying tags to hide in search view.\r
++\r
++Leave blank to disable hiding of tags in search view.\r
++Note: elisp regexes are case-insensitive"\r
++ :type 'string\r
++ :group 'notmuch-search)\r
++\r
+ (defun notmuch-search-insert-field (field format-string result)\r
+ (cond\r
+ ((string-equal field "date")\r
+@@ -793,7 +801,13 @@ non-authors is found, assume that all of the authors m=\r
+atch."\r
+ (notmuch-search-insert-authors format-string (plist-get result :author=\r
+s)))\r
+=20\r
+ ((string-equal field "tags")\r
+=2D (let ((tags-str (mapconcat 'identity (plist-get result :tags) " ")))\r
++ (let ((tags-str (mapconcat 'identity\r
++ (delq nil\r
++ (mapcar (lambda (x) (if (and (not (equ=\r
+al notmuch-search-hide-tag-regex ""))\r
++ (string-m=\r
+atch notmuch-search-hide-tag-regex x))\r
++ nil\r
++ x)) (plist-get=\r
+ result :tags)))\r
++ " ")))\r
+ (insert (propertize (format format-string tags-str)\r
+ 'face 'notmuch-tag-face))))))\r
+=20\r
+=2D-=20\r
+1.7.10.4\r
+\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.12 (GNU/Linux)\r
+\r
+iQEcBAEBAgAGBQJQjvLuAAoJECaDklOuuidYj5QH/0WgJ07LYYJIxQDpD+hATRSs\r
+ls20AgzzvZvDK0EWWb9I+3YR+PgxirDvmmGtMFqWNKUCOk/s7LZmRffMVHUdR1i1\r
+3QLj8R9XqOn6UPNCGC5Bd5bYc01svIcwvgR2lPWkT+lv91I6IH0sr624RcriVDYT\r
+y8CB26gPfK+5oMbiDQ2kWGSnCF6gNxYol6VWgGEwmCtkTkwkEQqfuTspBfqQtj0V\r
+EvhRHiKF0KlgB4x+Ro/vVL5xK2LVPPdccRiirzv61cdpev+mV+0V+dw0n+vn+ei7\r
+AR7r34B0Z8XmVc8pyUcb7lbt8Y0954g9an9jlX+DFflNDzOOpWMkvk5DE6UDBkM=\r
+=sQkK\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r