[notmuch] [PATCH] notmuch.el: Decorate 'Date:' headers with the message-header-other...
authorDavid Edmondson <dme@dme.org>
Wed, 10 Feb 2010 11:38:54 +0000 (11:38 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:09 +0000 (09:36 -0800)
b5/90dbe022152cc663efa30ee7a60b19fb547b73 [new file with mode: 0644]

diff --git a/b5/90dbe022152cc663efa30ee7a60b19fb547b73 b/b5/90dbe022152cc663efa30ee7a60b19fb547b73
new file mode 100644 (file)
index 0000000..6690b3b
--- /dev/null
@@ -0,0 +1,77 @@
+Return-Path: <dme@dme.org>\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 3D242431FBC\r
+       for <notmuch@notmuchmail.org>; Wed, 10 Feb 2010 03:39:44 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.236\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.236 tagged_above=-999 required=5\r
+       tests=[AWL=-0.496, BAYES_20=-0.74] autolearn=ham\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 qexqCLOR5vj5 for <notmuch@notmuchmail.org>;\r
+       Wed, 10 Feb 2010 03:39:43 -0800 (PST)\r
+Received: from mail-ew0-f220.google.com (mail-ew0-f220.google.com\r
+       [209.85.219.220])\r
+       by olra.theworths.org (Postfix) with ESMTP id 37C5E431FAE\r
+       for <notmuch@notmuchmail.org>; Wed, 10 Feb 2010 03:39:43 -0800 (PST)\r
+Received: by ewy20 with SMTP id 20so6327634ewy.0\r
+       for <notmuch@notmuchmail.org>; Wed, 10 Feb 2010 03:39:42 -0800 (PST)\r
+Received: by 10.213.48.211 with SMTP id s19mr91381ebf.49.1265801982389;\r
+       Wed, 10 Feb 2010 03:39:42 -0800 (PST)\r
+Received: from aw.hh.sledj.net (gmp-ea-fw-1.sun.com [192.18.1.36])\r
+       by mx.google.com with ESMTPS id 24sm2586251eyx.38.2010.02.10.03.39.41\r
+       (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
+       Wed, 10 Feb 2010 03:39:41 -0800 (PST)\r
+Received: by aw.hh.sledj.net (Postfix, from userid 1000)\r
+       id 72FBB3A08A; Wed, 10 Feb 2010 11:39:22 +0000 (GMT)\r
+From: David Edmondson <dme@dme.org>\r
+To: notmuch@notmuchmail.org\r
+Date: Wed, 10 Feb 2010 11:38:54 +0000\r
+Message-Id: <1265801934-6603-1-git-send-email-dme@dme.org>\r
+X-Mailer: git-send-email 1.6.6.1\r
+Subject: [notmuch] [PATCH] notmuch.el: Decorate 'Date:' headers with the\r
+       message-header-other face when visible.\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: Wed, 10 Feb 2010 11:39:44 -0000\r
+\r
+---\r
+ notmuch.el |    8 +++++++-\r
+ 1 files changed, 7 insertions(+), 1 deletions(-)\r
+\r
+diff --git a/notmuch.el b/notmuch.el\r
+index c0bb552..bd721a0 100644\r
+--- a/notmuch.el\r
++++ b/notmuch.el\r
+@@ -816,7 +816,13 @@ before the delimiter marking the beginning of the body."\r
+             (overlay-put (make-overlay (point) (re-search-forward ":"))\r
+                          'face 'message-header-name)\r
+             (overlay-put (make-overlay (point) (re-search-forward ".*$"))\r
+-                         'face 'message-header-other)))))))\r
++                         'face 'message-header-other))\r
++        (if (looking-at "[Dd]ate:")\r
++            (progn\r
++              (overlay-put (make-overlay (point) (re-search-forward ":"))\r
++                           'face 'message-header-name)\r
++              (overlay-put (make-overlay (point) (re-search-forward ".*$"))\r
++                           'face 'message-header-other))))))))\r
\r
+ (defun notmuch-show-markup-header (message-begin depth)\r
+   "Buttonize and decorate faces in a message header.\r
+-- \r
+1.6.6.1\r
+\r