1 Return-Path: <schnouki@schnouki.net>
\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 99D0F429E29
\r
6 for <notmuch@notmuchmail.org>; Mon, 3 Oct 2011 05:04:12 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1]
\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 3P8YoXivqTlv for <notmuch@notmuchmail.org>;
\r
17 Mon, 3 Oct 2011 05:04:08 -0700 (PDT)
\r
18 Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])
\r
19 by olra.theworths.org (Postfix) with ESMTP id 85306431FB6
\r
20 for <notmuch@notmuchmail.org>; Mon, 3 Oct 2011 05:04:08 -0700 (PDT)
\r
21 Received: from localhost.localdomain (thor.loria.fr [152.81.12.250])
\r
22 by ks3536.kimsufi.com (Postfix) with ESMTPSA id B41AD6A06A9;
\r
23 Mon, 3 Oct 2011 14:04:06 +0200 (CEST)
\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;
\r
25 s=key-schnouki; t=1317643446;
\r
26 bh=l9SPgc69FB9RFi+P6tC0LKRLpcsVPQF4Ep7YE7xjqoo=;
\r
27 h=From:To:Subject:Date:Message-Id:In-Reply-To:References;
\r
28 b=TxcsxhVYRoWvDJflXnbfDZMgl1tnUS5O9DrpQrCbAfaUxIge21Kx+2Y8JZU8uushz
\r
29 PodU3IzHroHQwUF+9TF2vMavaF5a7acIIm9Ro/TcPjsT3Ac/ofTV6ayHfPOp0tv+bR
\r
30 B87qekS9a3hRVXyspbr7LDWgbbPYhAZWlUDdwf8c=
\r
31 From: Thomas Jost <schnouki@schnouki.net>
\r
32 To: notmuch@notmuchmail.org
\r
33 Subject: [PATCH 1/4] emacs: Add a face for crypto parts headers
\r
34 Date: Mon, 3 Oct 2011 14:03:55 +0200
\r
35 Message-Id: <1317643438-31272-2-git-send-email-schnouki@schnouki.net>
\r
36 X-Mailer: git-send-email 1.7.6.4
\r
37 In-Reply-To: <1317643438-31272-1-git-send-email-schnouki@schnouki.net>
\r
38 References: <1317643438-31272-1-git-send-email-schnouki@schnouki.net>
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.13
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Mon, 03 Oct 2011 12:04:13 -0000
\r
54 emacs/notmuch-crypto.el | 5 +++++
\r
55 emacs/notmuch-show.el | 4 ++--
\r
56 2 files changed, 7 insertions(+), 2 deletions(-)
\r
58 diff --git a/emacs/notmuch-crypto.el b/emacs/notmuch-crypto.el
\r
59 index f03266f..673ebb8 100644
\r
60 --- a/emacs/notmuch-crypto.el
\r
61 +++ b/emacs/notmuch-crypto.el
\r
62 @@ -36,6 +36,11 @@ search."
\r
66 +(defface notmuch-crypto-part-header
\r
67 + '((t (:foreground "blue")))
\r
68 + "Face used for crypto parts headers."
\r
71 (defface notmuch-crypto-signature-good
\r
72 '((t (:background "green" :foreground "black")))
\r
73 "Face used for good signatures."
\r
74 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
75 index 90f9af7..6b3b042 100644
\r
76 --- a/emacs/notmuch-show.el
\r
77 +++ b/emacs/notmuch-show.el
\r
78 @@ -446,7 +446,7 @@ current buffer, if possible."
\r
80 (defun notmuch-show-insert-part-multipart/signed (msg part content-type nth depth declared-type)
\r
81 (let ((button (notmuch-show-insert-part-header nth declared-type content-type nil)))
\r
82 - (button-put button 'face '(:foreground "blue"))
\r
83 + (button-put button 'face 'notmuch-crypto-part-header)
\r
84 ;; add signature status button if sigstatus provided
\r
85 (if (plist-member part :sigstatus)
\r
86 (let* ((headers (plist-get msg :headers))
\r
87 @@ -469,7 +469,7 @@ current buffer, if possible."
\r
89 (defun notmuch-show-insert-part-multipart/encrypted (msg part content-type nth depth declared-type)
\r
90 (let ((button (notmuch-show-insert-part-header nth declared-type content-type nil)))
\r
91 - (button-put button 'face '(:foreground "blue"))
\r
92 + (button-put button 'face 'notmuch-crypto-part-header)
\r
93 ;; add encryption status button if encstatus specified
\r
94 (if (plist-member part :encstatus)
\r
95 (let ((encstatus (car (plist-get part :encstatus))))
\r