From: Andreas Amann <a.amann@ucc.ie>
To: Jesse Rosenthal <jrosenthal@jhu.edu>, notmuch@notmuchmail.org
Subject: Re: A tool for printing from notmuch
Date: Fri, 28 Jan 2011 20:59:06 +0000 [thread overview]
Message-ID: <87y664pwx1.fsf@msstf091.ucc.ie> (raw)
In-Reply-To: <m162t87p3b.fsf@watt.hwcampus.jhu.edu>
Dear Jesse,
> Printing from notmuch is a bit of a pain. Muttprint doesn't really help
> much, because it can't handle multiparts well, doesn't know what to do
> with html, and will print out pages of base64 if you have
> attachments. And more often than not, what I need to print is an HTML
> email (a bus ticket or something).
>
> A solution I've been working on for my own use is here:
>
> http://commonmeasure.org/~jkr/notmuchprint
Thanks, that sounds great! I have been waiting for something like this
...
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
is this a known problem, or am I missing something obvious?
Next I commented out the offending line via
VIEW_IN_BROWSER = False
however still no luck:
Traceback (most recent call last):
File "/home/amann/local/bin/notmuchprint", line 284, in <module>
main(config)
File "/home/amann/local/bin/notmuchprint", line 263, in main
nm_msg = NotmuchMsg(msgid, config)
File "/home/amann/local/bin/notmuchprint", line 58, in __init__
self.json_thread = json.loads(json_string)
File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 360, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 378, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Any hints?
Andreas
next prev parent reply other threads:[~2011-01-28 21:01 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 [this message]
2011-01-28 21:11 ` Jesse Rosenthal
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=87y664pwx1.fsf@msstf091.ucc.ie \
--to=a.amann@ucc.ie \
--cc=jrosenthal@jhu.edu \
--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).