1 Return-Path: <prvs=0024c1a73=jrosenthal@jhu.edu>
\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 E7987431FB6
\r
6 for <notmuch@notmuchmail.org>; Fri, 28 Jan 2011 13:11:01 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled
\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 P-azAMGJUQor for <notmuch@notmuchmail.org>;
\r
16 Fri, 28 Jan 2011 13:11:01 -0800 (PST)
\r
17 Received: from ipex2.johnshopkins.edu (ipex2.johnshopkins.edu [162.129.8.151])
\r
18 (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 4C231431FB5
\r
21 for <notmuch@notmuchmail.org>; Fri, 28 Jan 2011 13:11:01 -0800 (PST)
\r
22 X-IronPort-Anti-Spam-Filtered: true
\r
23 X-IronPort-Anti-Spam-Result: ApsEAO6/Qk0KoSAO/2dsb2JhbACldrFriGmFTwSFGIcP
\r
24 X-IronPort-AV: E=Sophos;i="4.60,394,1291611600"; d="scan'208";a="43696206"
\r
25 Received: from watt.hwcampus.jhu.edu ([10.161.32.14])
\r
26 by ipex2.johnshopkins.edu with ESMTP/TLS/ADH-AES256-SHA;
\r
27 28 Jan 2011 16:11:00 -0500
\r
28 Received: by watt.hwcampus.jhu.edu (Postfix, from userid 502)
\r
29 id 45C15789AC7; Fri, 28 Jan 2011 16:11:00 -0500 (EST)
\r
30 From: Jesse Rosenthal <jrosenthal@jhu.edu>
\r
31 To: Andreas Amann <a.amann@ucc.ie>, notmuch@notmuchmail.org
\r
32 Subject: Re: A tool for printing from notmuch
\r
33 In-Reply-To: <87y664pwx1.fsf@msstf091.ucc.ie>
\r
34 References: <m162t87p3b.fsf@watt.hwcampus.jhu.edu>
\r
35 <87y664pwx1.fsf@msstf091.ucc.ie>
\r
36 User-Agent: Notmuch/0.5-56-g74cb76a (http://notmuchmail.org) Emacs/23.2.1
\r
37 (x86_64-apple-darwin)
\r
38 Date: Fri, 28 Jan 2011 16:11:00 -0500
\r
39 Message-ID: <m139oc7mzf.fsf@watt.hwcampus.jhu.edu>
\r
41 Content-Type: text/plain; charset=us-ascii
\r
42 X-BeenThere: notmuch@notmuchmail.org
\r
43 X-Mailman-Version: 2.1.13
\r
45 List-Id: "Use and development of the notmuch mail system."
\r
46 <notmuch.notmuchmail.org>
\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
50 List-Post: <mailto:notmuch@notmuchmail.org>
\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
54 X-List-Received-Date: Fri, 28 Jan 2011 21:11:02 -0000
\r
59 On Fri, 28 Jan 2011 20:59:06 +0000, Andreas Amann <a.amann@ucc.ie> wrote:
\r
60 > Unfortunately I could not get it to work with python2.7:
\r
62 > Traceback (most recent call last):
\r
63 > File "/home/amann/local/bin/notmuchprint", line 284, in <module>
\r
65 > File "/home/amann/local/bin/notmuchprint", line 238, in main
\r
66 > VIEW_IN_BROWSER = config.getboolean('DEFAULT', 'view_in_browser')
\r
67 > File "/usr/lib/python2.7/ConfigParser.py", line 360, in getboolean
\r
68 > v = self.get(section, option)
\r
69 > File "/usr/lib/python2.7/ConfigParser.py", line 581, in get
\r
70 > return self._interpolate(section, option, value, d)
\r
71 > File "/usr/lib/python2.7/ConfigParser.py", line 621, in _interpolate
\r
72 > if value and "%(" in value:
\r
73 > TypeError: argument of type 'bool' is not iterable
\r
76 Hmm... looks like a problem with ConfigParser. Maybe the default values
\r
77 aren't working well?
\r
79 Try setting up a ~/.notmuchprintrc:
\r
81 notmuch_command: "/usr/local/bin/notmuch"
\r
82 browser_command: "/usr/bin/firefox"
\r
83 plain_text_font: "sans-serif"
\r
84 always_prefer_plaintext: no
\r
85 view_in_browser: yes
\r
87 If that works, I need to futz with its defaults a bit. (Also, I just
\r
88 noticed that I named a config boolean with the same name as a function:
\r
89 view_in_browser. That shouldn't be the problem here, but I should fix it
\r