Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E7987431FB6 for ; Fri, 28 Jan 2011 13:11:01 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P-azAMGJUQor for ; Fri, 28 Jan 2011 13:11:01 -0800 (PST) Received: from ipex2.johnshopkins.edu (ipex2.johnshopkins.edu [162.129.8.151]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 4C231431FB5 for ; Fri, 28 Jan 2011 13:11:01 -0800 (PST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAO6/Qk0KoSAO/2dsb2JhbACldrFriGmFTwSFGIcP X-IronPort-AV: E=Sophos;i="4.60,394,1291611600"; d="scan'208";a="43696206" Received: from watt.hwcampus.jhu.edu ([10.161.32.14]) by ipex2.johnshopkins.edu with ESMTP/TLS/ADH-AES256-SHA; 28 Jan 2011 16:11:00 -0500 Received: by watt.hwcampus.jhu.edu (Postfix, from userid 502) id 45C15789AC7; Fri, 28 Jan 2011 16:11:00 -0500 (EST) From: Jesse Rosenthal To: Andreas Amann , notmuch@notmuchmail.org Subject: Re: A tool for printing from notmuch In-Reply-To: <87y664pwx1.fsf@msstf091.ucc.ie> References: <87y664pwx1.fsf@msstf091.ucc.ie> User-Agent: Notmuch/0.5-56-g74cb76a (http://notmuchmail.org) Emacs/23.2.1 (x86_64-apple-darwin) Date: Fri, 28 Jan 2011 16:11:00 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2011 21:11:02 -0000 Hi Andreas, On Fri, 28 Jan 2011 20:59:06 +0000, Andreas Amann wrote: > Unfortunately I could not get it to work with python2.7: > > Traceback (most recent call last): > File "/home/amann/local/bin/notmuchprint", line 284, in > main(config) > File "/home/amann/local/bin/notmuchprint", line 238, in main > VIEW_IN_BROWSER = config.getboolean('DEFAULT', 'view_in_browser') > File "/usr/lib/python2.7/ConfigParser.py", line 360, in getboolean > v = self.get(section, option) > File "/usr/lib/python2.7/ConfigParser.py", line 581, in get > return self._interpolate(section, option, value, d) > File "/usr/lib/python2.7/ConfigParser.py", line 621, in _interpolate > if value and "%(" in value: > TypeError: argument of type 'bool' is not iterable ... Hmm... looks like a problem with ConfigParser. Maybe the default values aren't working well? Try setting up a ~/.notmuchprintrc: notmuch_command: "/usr/local/bin/notmuch" browser_command: "/usr/bin/firefox" plain_text_font: "sans-serif" always_prefer_plaintext: no view_in_browser: yes If that works, I need to futz with its defaults a bit. (Also, I just noticed that I named a config boolean with the same name as a function: view_in_browser. That shouldn't be the problem here, but I should fix it all the same.) Best, Jesse