Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / a9 / 37535f092390fb7e5a904d8b69ccfbe003d046
1 Return-Path: <wking@tremily.us>\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 arlo.cworth.org (Postfix) with ESMTP id B8DE56DE0C4A\r
6  for <notmuch@notmuchmail.org>; Thu,  7 Jan 2016 05:53:36 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.544\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.544 tagged_above=-999 required=5 tests=[AWL=-0.455,\r
12   DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FS_WITH_SMALL=1,\r
13  RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled\r
14 Received: from arlo.cworth.org ([127.0.0.1])\r
15  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
16  with ESMTP id XF5ACvs4HS9X for <notmuch@notmuchmail.org>;\r
17  Thu,  7 Jan 2016 05:53:30 -0800 (PST)\r
18 Received: from resqmta-po-02v.sys.comcast.net (resqmta-po-02v.sys.comcast.net\r
19  [96.114.154.161])\r
20  by arlo.cworth.org (Postfix) with ESMTPS id A0AF96DE0C11\r
21  for <notmuch@notmuchmail.org>; Thu,  7 Jan 2016 05:53:30 -0800 (PST)\r
22 Received: from resomta-po-18v.sys.comcast.net ([96.114.154.242])\r
23  by resqmta-po-02v.sys.comcast.net with comcast\r
24  id 31t91s0055E3ZMc011tTXL; Thu, 07 Jan 2016 13:53:27 +0000\r
25 Received: from mail.tremily.us ([73.221.72.168])\r
26  by resomta-po-18v.sys.comcast.net with comcast\r
27  id 31rS1s0043dr3C9011rSy1; Thu, 07 Jan 2016 13:51:27 +0000\r
28 Received: from ullr.tremily.us (unknown [192.168.10.7])\r
29  by mail.tremily.us (Postfix) with ESMTPS id 691251B3B116;\r
30  Thu,  7 Jan 2016 05:51:22 -0800 (PST)\r
31 Received: (nullmailer pid 19350 invoked by uid 1000);\r
32  Thu, 07 Jan 2016 13:51:31 -0000\r
33 From: "W. Trevor King" <wking@tremily.us>\r
34 To: notmuch@notmuchmail.org\r
35 Subject: [PATCH] nmbug-status: Style headers with smaller fonts\r
36 Date: Thu,  7 Jan 2016 05:51:29 -0800\r
37 Message-Id:\r
38  <b1a0c49671f26d37a6925bb46a249c8edba99963.1452174532.git.wking@tremily.us>\r
39 X-Mailer: git-send-email 2.1.0.60.g85f0837\r
40 In-Reply-To: <87k2nl8r0k.fsf@zancas.localnet>\r
41 References: <87k2nl8r0k.fsf@zancas.localnet>\r
42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
43  s=q20140121; t=1452174807;\r
44  bh=cFYl94DANEVqDveAx+Nd/AbD2xug3JlOsKQvUVlxHVU=;\r
45  h=Received:Received:Received:Received:From:To:Subject:Date:\r
46  Message-Id;\r
47  b=u0KMRPzcuQySPZzdLyDgcfUYkq9aofRp27IvfROvuTX80c/AtwusGkbtjcfr41xin\r
48  NypjtYp3if2GcWNAFfpBx63mbmKmUj9zD6PerAKVqZJZMxmS40fqu4tZkMS41EmPs0\r
49  N5tbFCGUkMkpuLu1RCHfilmnkZpJANvVKKXImmfvp3qrZ6E1ecKojIrdLaIu102kfy\r
50  28YwTBWKDT8TRG5mGGUKAUE7tCwR9YZNkUTeizbN5boQc+PumVqEfzMWabw6dqdVz4\r
51  xaWzlt1Jn3TOW2Q+cUEmWApLEQGJxzHBJ6K6aWgGeWwx0GMswwOiY1Ag3IhPFPcA61\r
52  Qf3uEFVoIfH7Q==\r
53 X-BeenThere: notmuch@notmuchmail.org\r
54 X-Mailman-Version: 2.1.20\r
55 Precedence: list\r
56 List-Id: "Use and development of the notmuch mail system."\r
57  <notmuch.notmuchmail.org>\r
58 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
59  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
61 List-Post: <mailto:notmuch@notmuchmail.org>\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
63 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
64  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
65 X-List-Received-Date: Thu, 07 Jan 2016 13:53:36 -0000\r
66 \r
67 We only use h1 through h3, and David prefers smaller headers [1], so\r
68 shift over to the font sizes usually used for h2 through h4 [2,3,4].\r
69 I haven't bothered with the W3C's default margins, since a bit of\r
70 extra whitespace doesn't seem like a big deal.\r
71 \r
72 [1]: id:87k2nl8r0k.fsf@zancas.localnet\r
73      http://article.gmane.org/gmane.mail.notmuch.general/21595\r
74 [2]: http://www.w3.org/TR/html-markup/h2.html\r
75 [3]: http://www.w3.org/TR/html-markup/h3.html\r
76 [4]: http://www.w3.org/TR/html-markup/h4.html\r
77 ---\r
78 On Thu, Jan 07, 2016 at 09:20:59AM -0400, David Bremner wrote:\r
79 > W. Trevor King writes:\r
80 > > We can always add additional CSS if the default h1 formatting is\r
81 > > too intense.\r
82 >\r
83 > I'm pretty sure it will be, at least for me, since that's the reason\r
84 > I did it this way in the first place. I'm (obviously) not a web\r
85 > person, how about providing some CSS to roughly duplicate the\r
86 > current visuals?\r
87 \r
88 Here you go :).\r
89 \r
90 Cheers,\r
91 Trevor\r
92 \r
93  devel/nmbug/nmbug-status | 9 +++++++++\r
94  1 file changed, 9 insertions(+)\r
95 \r
96 diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status\r
97 index f33f660..0382919 100755\r
98 --- a/devel/nmbug/nmbug-status\r
99 +++ b/devel/nmbug/nmbug-status\r
100 @@ -327,6 +327,15 @@ header_template = config['meta'].get('header', '''<!DOCTYPE html>\r
101    <meta http-equiv="Content-Type" content="text/html; charset={encoding}" />\r
102    <title>{title}</title>\r
103    <style media="screen" type="text/css">\r
104 +    h1 {{\r
105 +      font-size: 1.5em;\r
106 +    }}\r
107 +    h2 {{\r
108 +      font-size: 1.17em;\r
109 +    }}\r
110 +    h3 {{\r
111 +      font-size: 100%;\r
112 +    }}\r
113      table {{\r
114        border-spacing: 0;\r
115      }}\r
116 -- \r
117 2.1.0.60.g85f0837\r
118 \r