[PATCH 1/4] emacs: Add a face for crypto parts headers
authorThomas Jost <schnouki@schnouki.net>
Mon, 3 Oct 2011 12:03:55 +0000 (14:03 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:33 +0000 (09:39 -0800)
95/1cd477aeea1e946657e930ee2c5d1a11b9716b [new file with mode: 0644]

diff --git a/95/1cd477aeea1e946657e930ee2c5d1a11b9716b b/95/1cd477aeea1e946657e930ee2c5d1a11b9716b
new file mode 100644 (file)
index 0000000..1ca462b
--- /dev/null
@@ -0,0 +1,98 @@
+Return-Path: <schnouki@schnouki.net>\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 99D0F429E29\r
+       for <notmuch@notmuchmail.org>; Mon,  3 Oct 2011 05:04:12 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.1\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1]\r
+       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 3P8YoXivqTlv for <notmuch@notmuchmail.org>;\r
+       Mon,  3 Oct 2011 05:04:08 -0700 (PDT)\r
+Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])\r
+       by olra.theworths.org (Postfix) with ESMTP id 85306431FB6\r
+       for <notmuch@notmuchmail.org>; Mon,  3 Oct 2011 05:04:08 -0700 (PDT)\r
+Received: from localhost.localdomain (thor.loria.fr [152.81.12.250])\r
+       by ks3536.kimsufi.com (Postfix) with ESMTPSA id B41AD6A06A9;\r
+       Mon,  3 Oct 2011 14:04:06 +0200 (CEST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;\r
+       s=key-schnouki; t=1317643446;\r
+       bh=l9SPgc69FB9RFi+P6tC0LKRLpcsVPQF4Ep7YE7xjqoo=;\r
+       h=From:To:Subject:Date:Message-Id:In-Reply-To:References;\r
+       b=TxcsxhVYRoWvDJflXnbfDZMgl1tnUS5O9DrpQrCbAfaUxIge21Kx+2Y8JZU8uushz\r
+       PodU3IzHroHQwUF+9TF2vMavaF5a7acIIm9Ro/TcPjsT3Ac/ofTV6ayHfPOp0tv+bR\r
+       B87qekS9a3hRVXyspbr7LDWgbbPYhAZWlUDdwf8c=\r
+From: Thomas Jost <schnouki@schnouki.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/4] emacs: Add a face for crypto parts headers\r
+Date: Mon,  3 Oct 2011 14:03:55 +0200\r
+Message-Id: <1317643438-31272-2-git-send-email-schnouki@schnouki.net>\r
+X-Mailer: git-send-email 1.7.6.4\r
+In-Reply-To: <1317643438-31272-1-git-send-email-schnouki@schnouki.net>\r
+References: <1317643438-31272-1-git-send-email-schnouki@schnouki.net>\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, 03 Oct 2011 12:04:13 -0000\r
+\r
+---\r
+ emacs/notmuch-crypto.el |    5 +++++\r
+ emacs/notmuch-show.el   |    4 ++--\r
+ 2 files changed, 7 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-crypto.el b/emacs/notmuch-crypto.el\r
+index f03266f..673ebb8 100644\r
+--- a/emacs/notmuch-crypto.el\r
++++ b/emacs/notmuch-crypto.el\r
+@@ -36,6 +36,11 @@ search."\r
+   :group 'notmuch\r
+   :type 'boolean)\r
\r
++(defface notmuch-crypto-part-header\r
++  '((t (:foreground "blue")))\r
++  "Face used for crypto parts headers."\r
++  :group 'notmuch)\r
++\r
+ (defface notmuch-crypto-signature-good\r
+   '((t (:background "green" :foreground "black")))\r
+   "Face used for good signatures."\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index 90f9af7..6b3b042 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -446,7 +446,7 @@ current buffer, if possible."\r
\r
+ (defun notmuch-show-insert-part-multipart/signed (msg part content-type nth depth declared-type)\r
+   (let ((button (notmuch-show-insert-part-header nth declared-type content-type nil)))\r
+-    (button-put button 'face '(:foreground "blue"))\r
++    (button-put button 'face 'notmuch-crypto-part-header)\r
+     ;; add signature status button if sigstatus provided\r
+     (if (plist-member part :sigstatus)\r
+       (let* ((headers (plist-get msg :headers))\r
+@@ -469,7 +469,7 @@ current buffer, if possible."\r
\r
+ (defun notmuch-show-insert-part-multipart/encrypted (msg part content-type nth depth declared-type)\r
+   (let ((button (notmuch-show-insert-part-header nth declared-type content-type nil)))\r
+-    (button-put button 'face '(:foreground "blue"))\r
++    (button-put button 'face 'notmuch-crypto-part-header)\r
+     ;; add encryption status button if encstatus specified\r
+     (if (plist-member part :encstatus)\r
+       (let ((encstatus (car (plist-get part :encstatus))))\r
+-- \r
+1.7.6.4\r
+\r