[notmuch] [PATCH] notmuch.el: Decorate 'Date:' headers with the message-header-other face when visible.

Subject: [notmuch] [PATCH] notmuch.el: Decorate 'Date:' headers with the message-header-other face when visible.

Date: Wed, 10 Feb 2010 11:38:54 +0000

To: notmuch@notmuchmail.org

Cc:

From: David Edmondson


---
 notmuch.el |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/notmuch.el b/notmuch.el
index c0bb552..bd721a0 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -816,7 +816,13 @@ before the delimiter marking the beginning of the body."
 	      (overlay-put (make-overlay (point) (re-search-forward ":"))
 			   'face 'message-header-name)
 	      (overlay-put (make-overlay (point) (re-search-forward ".*$"))
-			   'face 'message-header-other)))))))
+			   'face 'message-header-other))
+	  (if (looking-at "[Dd]ate:")
+	      (progn
+		(overlay-put (make-overlay (point) (re-search-forward ":"))
+			     'face 'message-header-name)
+		(overlay-put (make-overlay (point) (re-search-forward ".*$"))
+			     'face 'message-header-other))))))))
 
 (defun notmuch-show-markup-header (message-begin depth)
   "Buttonize and decorate faces in a message header.
-- 
1.6.6.1


Thread: