Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8122D431FBC for ; Fri, 22 Jan 2010 10:47:02 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -3.296 X-Spam-Level: X-Spam-Status: No, score=-3.296 tagged_above=-999 required=5 tests=[AWL=0.659, BAYES_50=0.001, DATE_IN_PAST_03_06=0.044, RCVD_IN_DNSWL_MED=-4] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ICbXzHwEAMHO for ; Fri, 22 Jan 2010 10:47:02 -0800 (PST) Received: from serrano.cc.columbia.edu (serrano.cc.columbia.edu [128.59.29.6]) by olra.theworths.org (Postfix) with ESMTP id D98DD431FAE for ; Fri, 22 Jan 2010 10:47:01 -0800 (PST) Received: from servo.finestructure.net (cpe-72-227-128-66.nyc.res.rr.com [72.227.128.66]) (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0) by serrano.cc.columbia.edu (8.14.3/8.14.3) with ESMTP id o0MIkwfM016527 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 22 Jan 2010 13:47:00 -0500 (EST) Received: from jrollins by servo.finestructure.net with local (Exim 4.71) (envelope-from ) id 1NYOX3-0005y2-VQ for notmuch@notmuchmail.org; Fri, 22 Jan 2010 13:46:57 -0500 From: Jameson Rollins To: Notmuch Mail list Date: Fri, 22 Jan 2010 10:45:53 -0500 Message-ID: <874omet1su.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.68 on 128.59.29.6 Subject: [notmuch] [PATCH] fontify date in header X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2010 18:47:02 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable The date was unfairly left out of getting pretty colors in the notmuch-show header display. This fixes that grave injustice. =2D-- notmuch.el | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/notmuch.el b/notmuch.el index 97914f2..48c270b 100644 =2D-- a/notmuch.el +++ b/notmuch.el @@ -722,7 +722,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 ".*$")) =2D '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)))))))) =20 (defun notmuch-show-markup-header (message-begin depth) "Buttonize and decorate faces in a message header. =2D-=20 1.6.5 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJLWfKhAAoJEO00zqvie6q8rVIQALsT9O463NrRCrcZnmEqXDts o83+L6dPsk6V7QD2p36QSBVPJFtbV1K5VL6besF6cFfIlR2HzvBGVjBfvDhUTJCV BJf+X4srOMJKI82t2009Yetgsz9KDRg6iUtfgsYhQHrSQOq+TVnPAPnyk0ifIcJE TjVs9Rh4nfiZ+UJA7FFygPfILnRdHdaJJTvRrag6U1OqEmN5hRONoR54hDtwFNwF 9RJx+R0AjahwNj1VBtnsadeNAIbmOv2tbyUy9dPTlgeBNHprU7XkbTqDrn9fv4hM 97T4IMkuW1oFRrbfmYRi5RmeUkmsVv298dFmlFNg9eA0OFsShVXwPFU3MpV/8Emn 7CFlLqfTjYmcpkiR7UWiOD25xDAlx0zy3Vv8piLVqo0ronmp18P/cdx//VsVDl6x qvcwR01rm6HplwkHa2K0dxVAqz433RvXE8UWdS5xbM/TTN2tQY6o3QzcEpPSGdNH owzQtPCHEUivkD9VLv3c6jq5mQXZgiyv6Pz9FK6+ssYvfUMlMBhlSV1Z+0c3WZDE vh5ct4CiVDlEE+NSeZCJFn/ohnJEdN5Mla2IMJUI86ehcALtggURzZShgNe9uzpZ +YKJK5/8Q3dQqkGjjfqft51kzt1fs55Wax1ReAJEcRHG5AA2LKC2rlWSKptt4tlj TDVf54I2apPtBqdCjLYL =yytg -----END PGP SIGNATURE----- --=-=-=--