Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / ff / 8fb5bd119e1494ced1a0aeb13431c2bd68bbd0
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 olra.theworths.org (Postfix) with ESMTP id 18249431FDF\r
6         for <notmuch@notmuchmail.org>; Mon, 10 Feb 2014 10:44:52 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
9 X-Spam-Flag: NO\r
10 X-Spam-Score: 0\r
11 X-Spam-Level: \r
12 X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
13         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001]\r
14         autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id UXcK+5cYLrUB for <notmuch@notmuchmail.org>;\r
18         Mon, 10 Feb 2014 10:44:47 -0800 (PST)\r
19 Received: from qmta15.westchester.pa.mail.comcast.net\r
20         (qmta15.westchester.pa.mail.comcast.net [76.96.59.228])\r
21         by olra.theworths.org (Postfix) with ESMTP id 648A4429E31\r
22         for <notmuch@notmuchmail.org>; Mon, 10 Feb 2014 10:44:00 -0800 (PST)\r
23 Received: from omta14.westchester.pa.mail.comcast.net ([76.96.62.60])\r
24         by qmta15.westchester.pa.mail.comcast.net with comcast\r
25         id QhLQ1n0081HzFnQ5Fik0gy; Mon, 10 Feb 2014 18:44:00 +0000\r
26 Received: from odin.tremily.us ([24.18.63.50])\r
27         by omta14.westchester.pa.mail.comcast.net with comcast\r
28         id Qihy1n00Y152l3L3aihzVh; Mon, 10 Feb 2014 18:42:00 +0000\r
29 Received: from mjolnir.tremily.us (unknown [192.168.0.140])\r
30         by odin.tremily.us (Postfix) with ESMTPS id 5D79510167BD;\r
31         Mon, 10 Feb 2014 10:41:58 -0800 (PST)\r
32 Received: (nullmailer pid 1274 invoked by uid 1000);\r
33         Mon, 10 Feb 2014 18:40:45 -0000\r
34 From: "W. Trevor King" <wking@tremily.us>\r
35 To: notmuch@notmuchmail.org\r
36 Subject: [PATCH v2 14/20] nmbug-status: Encode output using the user's locale\r
37 Date: Mon, 10 Feb 2014 10:40:35 -0800\r
38 Message-Id:\r
39  <deff072f78f4a7c5b0774e67a8f0517cc704725d.1392056624.git.wking@tremily.us>\r
40 X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1\r
41 In-Reply-To: <cover.1392056624.git.wking@tremily.us>\r
42 References: <cover.1392056624.git.wking@tremily.us>\r
43 In-Reply-To: <cover.1392056624.git.wking@tremily.us>\r
44 References: <cover.1392056624.git.wking@tremily.us>\r
45 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
46         s=q20121106; t=1392057840;\r
47         bh=LnRJyXSjLCoerteKJpW+gfOt5wfR0V949s2BodEGwVs=;\r
48         h=Received:Received:Received:Received:From:To:Subject:Date:\r
49         Message-Id;\r
50         b=rCKud1oSzCuyqSGR9QXJPVtmAxWzj4pztztirZgOOiQLLd6b3iEGgLnmUf5DYMwu6\r
51         LzW9EL89TfNRopeIq00hh9FZGJ0dO+YhVQWV9ip//siEKvBUpxU45vmmknQDInPNOC\r
52         s0CLd9p9Qrb8AWT3r2Bk0ybVle7X1JqNDyViAkPJ0LZMEispK0L4Awi1bZI69rvVbl\r
53         WDCiQK7r2CzqyowShZsxruPcOqqTuwuQb0UgqAPpEapca9Hh87N48ehWsV4duyogiP\r
54         LhqQB+IVA6h9oOuA/2PRreL78ucQGwC3Mz7KU+tvboB/anBF3Sw/8GKrrYW8haskGJ\r
55         J1jpOa/Xfx1sA==\r
56 Cc: Tomi Ollila <tomi.ollila@iki.fi>\r
57 X-BeenThere: notmuch@notmuchmail.org\r
58 X-Mailman-Version: 2.1.13\r
59 Precedence: list\r
60 List-Id: "Use and development of the notmuch mail system."\r
61         <notmuch.notmuchmail.org>\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
65 List-Post: <mailto:notmuch@notmuchmail.org>\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
69 X-List-Received-Date: Mon, 10 Feb 2014 18:44:52 -0000\r
70 \r
71 Instead of always writing UTF-8, allow the user to configure the\r
72 output encoding using their locale.  This is useful for previewing\r
73 output in the terminal, for poor souls that don't use UTF-8 locales\r
74 ;).\r
75 ---\r
76  devel/nmbug/nmbug-status | 7 ++++---\r
77  1 file changed, 4 insertions(+), 3 deletions(-)\r
78 \r
79 diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status\r
80 index 873a46a..040baf0 100755\r
81 --- a/devel/nmbug/nmbug-status\r
82 +++ b/devel/nmbug/nmbug-status\r
83 @@ -88,7 +88,7 @@ class Page (object):\r
84                  byte_stream = sys.stdout.buffer\r
85              except AttributeError:  # Python 2\r
86                  byte_stream = sys.stdout\r
87 -            stream = codecs.getwriter(encoding='UTF-8')(stream=byte_stream)\r
88 +            stream = codecs.getwriter(encoding=_ENCODING)(stream=byte_stream)\r
89          self._write_header(views=views, stream=stream)\r
90          for view in views:\r
91              self._write_view(database=database, view=view, stream=stream)\r
92 @@ -230,7 +230,7 @@ _PAGES['html'] = HtmlPage(\r
93      header='''<!DOCTYPE html>\r
94  <html lang="en">\r
95  <head>\r
96 -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
97 +<meta http-equiv="Content-Type" content="text/html; charset={encoding}" />\r
98  <title>Notmuch Patches</title>\r
99  </head>\r
100  <body>\r
101 @@ -238,7 +238,8 @@ _PAGES['html'] = HtmlPage(\r
102  Generated: {date}<br />\r
103  For more infomation see <a href="http://notmuchmail.org/nmbug">nmbug</a>\r
104  <h3>Views</h3>\r
105 -'''.format(date=datetime.datetime.utcnow().date()),\r
106 +'''.format(date=datetime.datetime.utcnow().date(),\r
107 +           encoding=_ENCODING),\r
108      footer='</body>\n</html>\n',\r
109      )\r
110  \r
111 -- \r
112 1.8.5.2.8.g0f6c0d1\r
113 \r