1 Return-Path: <dmitry.kurochkin@gmail.com>
\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 891A0429E25
\r
6 for <notmuch@notmuchmail.org>; Thu, 15 Dec 2011 16:57:35 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 voIVOko4G9aN for <notmuch@notmuchmail.org>;
\r
17 Thu, 15 Dec 2011 16:57:34 -0800 (PST)
\r
18 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com
\r
19 [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
20 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
21 9D1F4431FD0 for <notmuch@notmuchmail.org>; Thu, 15 Dec 2011 16:57:34 -0800
\r
23 Received: by wgbds13 with SMTP id ds13so4057055wgb.2
\r
24 for <notmuch@notmuchmail.org>; Thu, 15 Dec 2011 16:57:33 -0800 (PST)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
26 h=from:to:subject:in-reply-to:references:user-agent:date:message-id
\r
27 :mime-version:content-type;
\r
28 bh=BGsq4/M9dwcIoy4N1dVqCScLG7h0M4jKqPsf439X26U=;
\r
29 b=svwT13WvkROFU1F7thF/10psj752TUENBgpBRJKxu5S/sU3t0c0BtjDQ7yjj+Pg9F1
\r
30 eLh2eKlbNO2goATP4N9PE8t5P2dqSn818ytWmfJ9BgOC/+ZXAo7QYEFPXKn4ucMcIFu+
\r
31 rfezbN2skJJDUe9IacysP3MITyQ3OBJlIjZpM=
\r
32 Received: by 10.180.4.42 with SMTP id h10mr9270515wih.22.1323997053284;
\r
33 Thu, 15 Dec 2011 16:57:33 -0800 (PST)
\r
34 Received: from localhost ([91.144.186.21])
\r
35 by mx.google.com with ESMTPS id m5sm10873754wie.2.2011.12.15.16.57.31
\r
36 (version=TLSv1/SSLv3 cipher=OTHER);
\r
37 Thu, 15 Dec 2011 16:57:32 -0800 (PST)
\r
38 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
39 To: Thomas Jost <schnouki@schnouki.net>, notmuch@notmuchmail.org
\r
40 Subject: Re: [PATCH v3 2/4] emacs: Add a face for crypto parts headers
\r
41 In-Reply-To: <1323797532-597-3-git-send-email-schnouki@schnouki.net>
\r
42 References: <87d3cx2t38.fsf@rocinante.cs.unb.ca>
\r
43 <1323797532-597-1-git-send-email-schnouki@schnouki.net>
\r
44 <1323797532-597-3-git-send-email-schnouki@schnouki.net>
\r
45 User-Agent: Notmuch/0.10.2+96~g74e5ae5 (http://notmuchmail.org) Emacs/23.3.1
\r
46 (x86_64-pc-linux-gnu)
\r
47 Date: Fri, 16 Dec 2011 04:56:53 +0400
\r
48 Message-ID: <8739cltju2.fsf@gmail.com>
\r
50 Content-Type: text/plain; charset=us-ascii
\r
51 X-BeenThere: notmuch@notmuchmail.org
\r
52 X-Mailman-Version: 2.1.13
\r
54 List-Id: "Use and development of the notmuch mail system."
\r
55 <notmuch.notmuchmail.org>
\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
59 List-Post: <mailto:notmuch@notmuchmail.org>
\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
63 X-List-Received-Date: Fri, 16 Dec 2011 00:57:35 -0000
\r
65 On Tue, 13 Dec 2011 18:32:10 +0100, Thomas Jost <schnouki@schnouki.net> wrote:
\r
66 > Commit cb841878 introduced new parts handlers for crypto parts, but also
\r
67 > hardcoded values for their headers face. This replaces these hardcoded values
\r
68 > with a customizable face.
\r
76 > emacs/notmuch-crypto.el | 5 +++++
\r
77 > emacs/notmuch-show.el | 4 ++--
\r
78 > 2 files changed, 7 insertions(+), 2 deletions(-)
\r
80 > diff --git a/emacs/notmuch-crypto.el b/emacs/notmuch-crypto.el
\r
81 > index 44fccae..67c26af 100644
\r
82 > --- a/emacs/notmuch-crypto.el
\r
83 > +++ b/emacs/notmuch-crypto.el
\r
84 > @@ -37,6 +37,11 @@ mode."
\r
88 > +(defface notmuch-crypto-part-header
\r
89 > + '((t (:foreground "blue")))
\r
90 > + "Face used for crypto parts headers."
\r
91 > + :group 'notmuch)
\r
93 > (defface notmuch-crypto-signature-good
\r
94 > '((t (:background "green" :foreground "black")))
\r
95 > "Face used for good signatures."
\r
96 > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
97 > index 33ee3d8..ec9c52c 100644
\r
98 > --- a/emacs/notmuch-show.el
\r
99 > +++ b/emacs/notmuch-show.el
\r
100 > @@ -457,7 +457,7 @@ current buffer, if possible."
\r
102 > (defun notmuch-show-insert-part-multipart/signed (msg part content-type nth depth declared-type)
\r
103 > (let ((button (notmuch-show-insert-part-header nth declared-type content-type nil)))
\r
104 > - (button-put button 'face '(:foreground "blue"))
\r
105 > + (button-put button 'face 'notmuch-crypto-part-header)
\r
106 > ;; add signature status button if sigstatus provided
\r
107 > (if (plist-member part :sigstatus)
\r
108 > (let* ((from (notmuch-show-get-header :From msg))
\r
109 > @@ -479,7 +479,7 @@ current buffer, if possible."
\r
111 > (defun notmuch-show-insert-part-multipart/encrypted (msg part content-type nth depth declared-type)
\r
112 > (let ((button (notmuch-show-insert-part-header nth declared-type content-type nil)))
\r
113 > - (button-put button 'face '(:foreground "blue"))
\r
114 > + (button-put button 'face 'notmuch-crypto-part-header)
\r
115 > ;; add encryption status button if encstatus specified
\r
116 > (if (plist-member part :encstatus)
\r
117 > (let ((encstatus (car (plist-get part :encstatus))))
\r
121 > _______________________________________________
\r
122 > notmuch mailing list
\r
123 > notmuch@notmuchmail.org
\r
124 > http://notmuchmail.org/mailman/listinfo/notmuch
\r