"snoozing" with notmuch?
[notmuch-archives.git] / de / 325add78e4965b17ad3c54815ab34b745880c3
1 Return-Path: <a.amann@ucc.ie>\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 30C5B431FB6\r
6         for <notmuch@notmuchmail.org>; Fri, 28 Jan 2011 13:01:12 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \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 li9hH6BWYZiE for <notmuch@notmuchmail.org>;\r
16         Fri, 28 Jan 2011 13:01:11 -0800 (PST)\r
17 Received: from mail4.ucc.ie (mail4.ucc.ie [143.239.1.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id 67501431FB5\r
19         for <notmuch@notmuchmail.org>; Fri, 28 Jan 2011 13:01:11 -0800 (PST)\r
20 Received: from msstf091.ucc.ie (msstf091.ucc.ie [143.239.76.91])\r
21         by mail4.ucc.ie (8.13.8/8.13.8) with ESMTP id p0SKx7lw014490;\r
22         Fri, 28 Jan 2011 21:00:16 GMT\r
23 Received: by msstf091.ucc.ie (Postfix, from userid 1000)\r
24         id DF904A2793; Fri, 28 Jan 2011 20:59:06 +0000 (GMT)\r
25 From: Andreas Amann <a.amann@ucc.ie>\r
26 To: Jesse Rosenthal <jrosenthal@jhu.edu>, notmuch@notmuchmail.org\r
27 Subject: Re: A tool for printing from notmuch\r
28 In-Reply-To: <m162t87p3b.fsf@watt.hwcampus.jhu.edu>\r
29 References: <m162t87p3b.fsf@watt.hwcampus.jhu.edu>\r
30 User-Agent: Notmuch/0.5-16-gceb5a1c (http://notmuchmail.org) Emacs/24.0.50.1\r
31         (x86_64-unknown-linux-gnu)\r
32 Date: Fri, 28 Jan 2011 20:59:06 +0000\r
33 Message-ID: <87y664pwx1.fsf@msstf091.ucc.ie>\r
34 MIME-Version: 1.0\r
35 Content-Type: text/plain\r
36 X-MD-NoSA: yes\r
37 X-Scanned-By: MIMEDefang 2.68 on 143.239.1.34\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Fri, 28 Jan 2011 21:01:12 -0000\r
51 \r
52 Dear Jesse,\r
53 \r
54 \r
55 > Printing from notmuch is a bit of a pain. Muttprint doesn't really help\r
56 > much, because it can't handle multiparts well, doesn't know what to do\r
57 > with html, and will print out pages of base64 if you have\r
58 > attachments. And more often than not, what I need to print is an HTML\r
59 > email (a bus ticket or something).\r
60\r
61 > A solution I've been working on for my own use is here:\r
62\r
63 > http://commonmeasure.org/~jkr/notmuchprint\r
64 \r
65 Thanks, that sounds great! I have been waiting for something like this\r
66 ...\r
67 \r
68 Unfortunately I could not get it to work with python2.7:\r
69 \r
70 Traceback (most recent call last):\r
71   File "/home/amann/local/bin/notmuchprint", line 284, in <module>\r
72     main(config)\r
73   File "/home/amann/local/bin/notmuchprint", line 238, in main\r
74     VIEW_IN_BROWSER = config.getboolean('DEFAULT', 'view_in_browser')\r
75   File "/usr/lib/python2.7/ConfigParser.py", line 360, in getboolean\r
76     v = self.get(section, option)\r
77   File "/usr/lib/python2.7/ConfigParser.py", line 581, in get\r
78     return self._interpolate(section, option, value, d)\r
79   File "/usr/lib/python2.7/ConfigParser.py", line 621, in _interpolate\r
80     if value and "%(" in value:\r
81 TypeError: argument of type 'bool' is not iterable\r
82 \r
83 \r
84 is this a known problem, or am I missing something obvious? \r
85 \r
86 Next I commented out the offending line via \r
87 \r
88     VIEW_IN_BROWSER = False\r
89 \r
90 \r
91 however still no luck:\r
92 \r
93 Traceback (most recent call last):\r
94   File "/home/amann/local/bin/notmuchprint", line 284, in <module>\r
95     main(config)\r
96   File "/home/amann/local/bin/notmuchprint", line 263, in main\r
97     nm_msg = NotmuchMsg(msgid, config)\r
98   File "/home/amann/local/bin/notmuchprint", line 58, in __init__\r
99     self.json_thread = json.loads(json_string)\r
100   File "/usr/lib/python2.7/json/__init__.py", line 326, in loads\r
101     return _default_decoder.decode(s)\r
102   File "/usr/lib/python2.7/json/decoder.py", line 360, in decode\r
103     obj, end = self.raw_decode(s, idx=_w(s, 0).end())\r
104   File "/usr/lib/python2.7/json/decoder.py", line 378, in raw_decode\r
105     raise ValueError("No JSON object could be decoded")\r
106 ValueError: No JSON object could be decoded\r
107 \r
108 \r
109 \r
110 Any hints?\r
111 \r
112 Andreas\r