From: Jesse Rosenthal <jrosenthal@jhu.edu>
To: Andreas Amann <a.amann@ucc.ie>, notmuch@notmuchmail.org
Subject: Re: A tool for printing from notmuch
Date: Fri, 28 Jan 2011 16:11:00 -0500 [thread overview]
Message-ID: <m139oc7mzf.fsf@watt.hwcampus.jhu.edu> (raw)
In-Reply-To: <87y664pwx1.fsf@msstf091.ucc.ie>
Hi Andreas,
On Fri, 28 Jan 2011 20:59:06 +0000, Andreas Amann <a.amann@ucc.ie> 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 <module>
> 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
next prev parent reply other threads:[~2011-01-28 21:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-28 20:25 A tool for printing from notmuch Jesse Rosenthal
2011-01-28 20:59 ` Andreas Amann
2011-01-28 21:11 ` Jesse Rosenthal [this message]
2011-01-28 21:17 ` Jesse Rosenthal
2011-01-28 23:01 ` Andreas Amann
2011-01-29 19:58 ` Sebastian Spaeth
2011-01-29 20:09 ` Jesse Rosenthal
2011-01-29 20:20 ` Sebastian Spaeth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m139oc7mzf.fsf@watt.hwcampus.jhu.edu \
--to=jrosenthal@jhu.edu \
--cc=a.amann@ucc.ie \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).