1 Return-Path: <m.walters@qmul.ac.uk>
\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 2311E431FB6
\r
6 for <notmuch@notmuchmail.org>; Sat, 28 Jan 2012 03:17:22 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5
\r
12 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,
\r
13 NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id a-ox61ipEUHP for <notmuch@notmuchmail.org>;
\r
17 Sat, 28 Jan 2012 03:17:21 -0800 (PST)
\r
18 Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])
\r
19 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 880EC431FAE
\r
22 for <notmuch@notmuchmail.org>; Sat, 28 Jan 2012 03:17:21 -0800 (PST)
\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])
\r
24 by mail2.qmul.ac.uk with esmtp (Exim 4.71)
\r
25 (envelope-from <m.walters@qmul.ac.uk>)
\r
26 id 1Rr6HY-0002ui-3e; Sat, 28 Jan 2012 11:17:20 +0000
\r
27 Received: from 94-192-233-223.zone6.bethere.co.uk ([94.192.233.223]
\r
29 by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69)
\r
30 (envelope-from <m.walters@qmul.ac.uk>)
\r
31 id 1Rr6HX-0001gZ-Rw; Sat, 28 Jan 2012 11:17:19 +0000
\r
32 From: Mark Walters <markwalters1009@gmail.com>
\r
33 To: David Edmondson <dme@dme.org>
\r
34 Subject: Re: [PATCH] emacs: add default value to notmuch-search-line-faces
\r
35 In-Reply-To: <871uqk6q60.fsf@qmul.ac.uk>
\r
36 References: <1327605679-15213-1-git-send-email-jani@nikula.org>
\r
37 <87y5st4ewt.fsf@qmul.ac.uk>
\r
38 <cunhazhjurs.fsf@hotblack-desiato.hh.sledj.net>
\r
39 <871uqk6q60.fsf@qmul.ac.uk>
\r
40 User-Agent: Notmuch/0.11+107~g185f859 (http://notmuchmail.org) Emacs/23.2.1
\r
42 Date: Sat, 28 Jan 2012 11:18:23 +0000
\r
43 Message-ID: <87y5ss5b40.fsf@qmul.ac.uk>
\r
45 Content-Type: text/plain; charset=us-ascii
\r
46 X-Sender-Host-Address: 94.192.233.223
\r
47 X-QM-SPAM-Info: Sender has good ham record. :)
\r
48 X-QM-Body-MD5: 3c3f0c11cb0b50a4d2574c9d85ccdbb8 (of first 20000 bytes)
\r
49 X-SpamAssassin-Score: -1.8
\r
50 X-SpamAssassin-SpamBar: -
\r
51 X-SpamAssassin-Report: The QM spam filters have analysed this message to
\r
53 spam. We require at least 5.0 points to mark a message as spam.
\r
54 This message scored -1.8 points.
\r
55 Summary of the scoring:
\r
56 * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,
\r
58 * [138.37.6.40 listed in list.dnswl.org]
\r
59 * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
\r
60 provider * (markwalters1009[at]gmail.com)
\r
61 * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay
\r
63 * 0.5 AWL AWL: From: address is in the auto white-list
\r
64 X-QM-Scan-Virus: ClamAV says the message is clean
\r
65 Cc: Notmuch Mail <notmuch@notmuchmail.org>
\r
66 X-BeenThere: notmuch@notmuchmail.org
\r
67 X-Mailman-Version: 2.1.13
\r
69 List-Id: "Use and development of the notmuch mail system."
\r
70 <notmuch.notmuchmail.org>
\r
71 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
72 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
73 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
74 List-Post: <mailto:notmuch@notmuchmail.org>
\r
75 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
76 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
77 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
78 X-List-Received-Date: Sat, 28 Jan 2012 11:17:22 -0000
\r
81 I wondered whether the general view is that this following trivial
\r
82 extension to David's notmuch-show-line-faces patch is too gross/hacky to
\r
83 live? It passes a fake tag of "flag:match" to notmuch-color-line so that
\r
84 the same customisation as for colouring lines based on tags can also
\r
85 colour based on match. I find it useful when using the collapsed view
\r
93 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
94 index c448ab2..00c1a2f 100644
\r
95 --- a/emacs/notmuch-show.el
\r
96 +++ b/emacs/notmuch-show.el
\r
97 @@ -837,11 +837,14 @@ current buffer, if possible."
\r
98 content-start content-end
\r
99 headers-start headers-end
\r
100 body-start body-end
\r
102 (headers-invis-spec (notmuch-show-make-symbol "header"))
\r
103 (message-invis-spec (notmuch-show-make-symbol "message"))
\r
104 (bare-subject (notmuch-show-strip-re (plist-get headers :Subject)))
\r
105 (tags (plist-get msg :tags)))
\r
107 + (if (plist-get msg :match)
\r
108 + (setq tags-and-flags (append tags '("flag:match"))))
\r
109 ;; Set `buffer-invisibility-spec' to `nil' (a list), otherwise
\r
110 ;; removing items from `buffer-invisibility-spec' (which is what
\r
111 ;; `notmuch-show-headers-visible' and
\r
112 @@ -870,7 +873,7 @@ current buffer, if possible."
\r
113 (setq content-start (point-marker))
\r
115 ;; Colour the header line according to the tags of the message.
\r
116 - (notmuch-color-line message-start content-start tags notmuch-show-line-faces)
\r
117 + (notmuch-color-line message-start content-start tags-and-flags notmuch-show-line-faces)
\r
119 (plist-put msg :headers-invis-spec headers-invis-spec)
\r
120 (plist-put msg :message-invis-spec message-invis-spec)
\r