1 Return-Path: <james@hackervisions.org>
\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 45F2A431FC7
\r
6 for <notmuch@notmuchmail.org>; Mon, 29 Oct 2012 11:57:50 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0.01 tagged_above=-999 required=5
\r
12 tests=[T_MIME_NO_TEXT=0.01] 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 RUBdGlkCwGJJ for <notmuch@notmuchmail.org>;
\r
16 Mon, 29 Oct 2012 11:57:48 -0700 (PDT)
\r
17 Received: from mail.sflc.info (mail.sflc.info [207.86.247.70])
\r
18 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 35DA4431FAF
\r
21 for <notmuch@notmuchmail.org>; Mon, 29 Oct 2012 11:57:48 -0700 (PDT)
\r
22 Received: from localhost (ool-457af02d.dyn.optonline.net [69.122.240.45])
\r
23 by mail.sflc.info (Postfix) with ESMTPSA id 245B9B4C018
\r
24 for <notmuch@notmuchmail.org>; Mon, 29 Oct 2012 18:57:47 +0000 (UTC)
\r
25 From: James Vasile <james@hackervisions.org>
\r
26 To: notmuch mailing list <notmuch@notmuchmail.org>
\r
27 Subject: [PATCH] don't show x-foo tags in search view
\r
28 User-Agent: Notmuch/0.12+139~g3c998ca (http://notmuchmail.org) Emacs/23.4.1
\r
30 Date: Mon, 29 Oct 2012 14:57:41 -0400
\r
31 Message-ID: <87fw4x3y3e.fsf@hackervisions.org>
\r
33 Content-Type: multipart/signed; boundary="=-=-=";
\r
34 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
35 X-BeenThere: notmuch@notmuchmail.org
\r
36 X-Mailman-Version: 2.1.13
\r
38 List-Id: "Use and development of the notmuch mail system."
\r
39 <notmuch.notmuchmail.org>
\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
41 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
43 List-Post: <mailto:notmuch@notmuchmail.org>
\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
47 X-List-Received-Date: Mon, 29 Oct 2012 18:57:50 -0000
\r
50 Content-Transfer-Encoding: quoted-printable
\r
52 My filters create tags like x-bogotrained-spam that are for internal
\r
53 bookkeeping. I don't mind seeing them in the 'show' view, but I didn't
\r
54 want them cluttering my 'search' view. This patch omits x-foo and X-foo
\r
55 tags from the 'search' view.
\r
58 emacs/notmuch.el | 7 ++++++-
\r
59 1 file changed, 6 insertions(+), 1 deletion(-)
\r
61 diff --git a/emacs/notmuch.el b/emacs/notmuch.el
\r
62 index f9454d8..90fafbf 100644
\r
63 =2D-- a/emacs/notmuch.el
\r
64 +++ b/emacs/notmuch.el
\r
65 @@ -793,7 +793,12 @@ non-authors is found, assume that all of the authors m=
\r
67 (notmuch-search-insert-authors format-string (plist-get result :author=
\r
70 ((string-equal field "tags")
\r
71 =2D (let ((tags-str (mapconcat 'identity (plist-get result :tags) " ")))
\r
72 + (let ((tags-str (mapconcat 'identity
\r
74 + (mapcar (lambda (x) (if (equal (upcase=
\r
75 (truncate-string-to-width x 2)) "X-")
\r
78 (plist-get result :tags)))
\r
80 (insert (propertize (format format-string tags-str)
\r
81 'face 'notmuch-tag-face))))))
\r
87 Content-Type: application/pgp-signature
\r
89 -----BEGIN PGP SIGNATURE-----
\r
90 Version: GnuPG v1.4.12 (GNU/Linux)
\r
92 iQEcBAEBAgAGBQJQjtGlAAoJECaDklOuuidYw3oH/jLoHo6aUqu4fgWbmCxteCEV
\r
93 jOUevpnaKIbNqvQIJkWSj9QBarazsY4/EWFP8c5+bTEhtH6PnrSyZnnlz0PPvrf1
\r
94 P24imxj7A2dcsw9oRtqZj0fF5vblFm1sNXXpcPkBdAqNl7A5etoe/mGOPWVvMFV6
\r
95 dbUxbY8erWeF2DzxXJGeZzqWV4tgERkwTtIdYuMf9ZPyiYuUJUMpxO8VCv4qS+gB
\r
96 7q3JW3aYkb/1Yc0z3uRA76aP9orCIJfYdfzms2RxK4A/L3pRE3Vi25dajhXtl6iK
\r
97 4IbjfTHexiMN2/Pp2zOJdCcAnWkhOyWI+ZeNV2hVYK5bC2GFx2cuTPOHVFqGqZU=
\r
99 -----END PGP SIGNATURE-----
\r