Re: Missing headers when forwarding html message as RFC822
[notmuch-archives.git] / b5 / 90dbe022152cc663efa30ee7a60b19fb547b73
1 Return-Path: <dme@dme.org>\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 3D242431FBC\r
6         for <notmuch@notmuchmail.org>; Wed, 10 Feb 2010 03:39:44 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.236\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.236 tagged_above=-999 required=5\r
12         tests=[AWL=-0.496, BAYES_20=-0.74] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id qexqCLOR5vj5 for <notmuch@notmuchmail.org>;\r
16         Wed, 10 Feb 2010 03:39:43 -0800 (PST)\r
17 Received: from mail-ew0-f220.google.com (mail-ew0-f220.google.com\r
18         [209.85.219.220])\r
19         by olra.theworths.org (Postfix) with ESMTP id 37C5E431FAE\r
20         for <notmuch@notmuchmail.org>; Wed, 10 Feb 2010 03:39:43 -0800 (PST)\r
21 Received: by ewy20 with SMTP id 20so6327634ewy.0\r
22         for <notmuch@notmuchmail.org>; Wed, 10 Feb 2010 03:39:42 -0800 (PST)\r
23 Received: by 10.213.48.211 with SMTP id s19mr91381ebf.49.1265801982389;\r
24         Wed, 10 Feb 2010 03:39:42 -0800 (PST)\r
25 Received: from aw.hh.sledj.net (gmp-ea-fw-1.sun.com [192.18.1.36])\r
26         by mx.google.com with ESMTPS id 24sm2586251eyx.38.2010.02.10.03.39.41\r
27         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
28         Wed, 10 Feb 2010 03:39:41 -0800 (PST)\r
29 Received: by aw.hh.sledj.net (Postfix, from userid 1000)\r
30         id 72FBB3A08A; Wed, 10 Feb 2010 11:39:22 +0000 (GMT)\r
31 From: David Edmondson <dme@dme.org>\r
32 To: notmuch@notmuchmail.org\r
33 Date: Wed, 10 Feb 2010 11:38:54 +0000\r
34 Message-Id: <1265801934-6603-1-git-send-email-dme@dme.org>\r
35 X-Mailer: git-send-email 1.6.6.1\r
36 Subject: [notmuch] [PATCH] notmuch.el: Decorate 'Date:' headers with the\r
37         message-header-other face when visible.\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Wed, 10 Feb 2010 11:39:44 -0000\r
51 \r
52 ---\r
53  notmuch.el |    8 +++++++-\r
54  1 files changed, 7 insertions(+), 1 deletions(-)\r
55 \r
56 diff --git a/notmuch.el b/notmuch.el\r
57 index c0bb552..bd721a0 100644\r
58 --- a/notmuch.el\r
59 +++ b/notmuch.el\r
60 @@ -816,7 +816,13 @@ before the delimiter marking the beginning of the body."\r
61               (overlay-put (make-overlay (point) (re-search-forward ":"))\r
62                            'face 'message-header-name)\r
63               (overlay-put (make-overlay (point) (re-search-forward ".*$"))\r
64 -                          'face 'message-header-other)))))))\r
65 +                          'face 'message-header-other))\r
66 +         (if (looking-at "[Dd]ate:")\r
67 +             (progn\r
68 +               (overlay-put (make-overlay (point) (re-search-forward ":"))\r
69 +                            'face 'message-header-name)\r
70 +               (overlay-put (make-overlay (point) (re-search-forward ".*$"))\r
71 +                            'face 'message-header-other))))))))\r
72  \r
73  (defun notmuch-show-markup-header (message-begin depth)\r
74    "Buttonize and decorate faces in a message header.\r
75 -- \r
76 1.6.6.1\r
77 \r