A tool for printing from notmuch

Jesse Rosenthal jrosenthal at jhu.edu
Fri Jan 28 13:11:00 PST 2011


Hi Andreas,

On Fri, 28 Jan 2011 20:59:06 +0000, Andreas Amann <a.amann at 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



More information about the notmuch mailing list