f6d485125659eebeb0bc015dd7f883efeeb26ab8
[notmuch-archives.git] / 63 / 4fc9588ddc6af0af42523fa09660aaa6787494
1 Return-Path: <david@tethera.net>\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 473226DE02A9\r
6  for <notmuch@notmuchmail.org>; Wed, 23 Mar 2016 04:19:48 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.027\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.027 tagged_above=-999 required=5\r
12  tests=[AWL=-0.016, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01]\r
13  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 gk2U9V37aoA8 for <notmuch@notmuchmail.org>;\r
17  Wed, 23 Mar 2016 04:19:39 -0700 (PDT)\r
18 Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
19  by arlo.cworth.org (Postfix) with ESMTPS id 889CF6DE0217\r
20  for <notmuch@notmuchmail.org>; Wed, 23 Mar 2016 04:19:39 -0700 (PDT)\r
21 Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
22  (envelope-from <david@tethera.net>)\r
23  id 1aigpg-0003Pg-5Z; Wed, 23 Mar 2016 07:20:12 -0400\r
24 Received: (nullmailer pid 13882 invoked by uid 1000);\r
25  Wed, 23 Mar 2016 11:19:34 -0000\r
26 From: David Bremner <david@tethera.net>\r
27 To: "W. Trevor King" <wking@tremily.us>, notmuch@notmuchmail.org\r
28 Subject: Re: [PATCH v2 2/4] nmbug-status: Add meta.message-url config setting\r
29 In-Reply-To:\r
30  <9377a4c1265b13f9588d21ec0ea591ea9f61a05f.1451683912.git.wking@tremily.us>\r
31 References: <cover.1451683912.git.wking@tremily.us>\r
32  <9377a4c1265b13f9588d21ec0ea591ea9f61a05f.1451683912.git.wking@tremily.us>\r
33 User-Agent: Notmuch/0.21+74~g6c60fb1 (http://notmuchmail.org) Emacs/24.5.1\r
34  (x86_64-pc-linux-gnu)\r
35 Date: Wed, 23 Mar 2016 08:19:34 -0300\r
36 Message-ID: <87zitpjvax.fsf@zancas.localnet>\r
37 MIME-Version: 1.0\r
38 Content-Type: text/plain\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.20\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43  <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
45  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
50  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Wed, 23 Mar 2016 11:19:48 -0000\r
52 \r
53 "W. Trevor King" <wking@tremily.us> writes:\r
54 \r
55 >  from __future__ import print_function\r
56 > @@ -232,6 +232,10 @@ class Page (object):\r
57 >  class HtmlPage (Page):\r
58 >      _slug_regexp = re.compile('\W+')\r
59 >  \r
60 > +    def __init__(self, message_url_template, **kwargs):\r
61 > +        self.message_url_template = message_url_template\r
62 > +        super(HtmlPage, self).__init__(**kwargs)\r
63 > +\r
64 \r
65 > @@ -395,6 +400,8 @@ _PAGES['text'] = Page()\r
66 >  _PAGES['html'] = HtmlPage(\r
67 >      header=header_template.format(**context),\r
68 >      footer=footer_template.format(**context),\r
69 > +    message_url_template=config['meta'].get(\r
70 > +        'message-url', 'http://mid.gmane.org/{message-id}'),\r
71 >      )\r
72 >  \r
73 \r
74 Maybe I'm missing some python knowledged, but it looks the constructor\r
75 is defined to take a regular argument for message_url_template, but only\r
76 passed in as a keyword. Does this really work?\r
77 \r
78 d\r