[PATCH 6/9] CLI: refactor dumping of tags.
[notmuch-archives.git] / ca / 3d70f025130909232dbb1cbac0c8f830567db4
1 Return-Path: <Sebastian@SSpaeth.de>\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 45C4A4048D3\r
6         for <notmuch@notmuchmail.org>; Fri, 12 Mar 2010 08:03:10 -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: -0.893\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.893 tagged_above=-999 required=5\r
12         tests=[AWL=-0.153, BAYES_20=-0.74] autolearn=ham\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 zQ9LRjDsvavS for <notmuch@notmuchmail.org>;\r
16         Fri, 12 Mar 2010 08:03:09 -0800 (PST)\r
17 Received: from homiemail-a17.g.dreamhost.com (mailbigip.dreamhost.com\r
18         [208.97.132.5])\r
19         by olra.theworths.org (Postfix) with ESMTP id 843D94048D1\r
20         for <notmuch@notmuchmail.org>; Fri, 12 Mar 2010 08:03:09 -0800 (PST)\r
21 Received: from sspaeth.de (unknown [84.55.211.9])\r
22         by homiemail-a17.g.dreamhost.com (Postfix) with ESMTPA id 48FE87A8063; \r
23         Fri, 12 Mar 2010 08:03:07 -0800 (PST)\r
24 Received: by sspaeth.de (sSMTP sendmail emulation);\r
25         Fri, 12 Mar 2010 17:03:04 +0100\r
26 From: "Sebastian Spaeth" <Sebastian@SSpaeth.de>\r
27 To: Michal Sojka <sojkam1@fel.cvut.cz>, David A Benjamin <davidben@MIT.EDU>,\r
28         Ben Gamari <bgamari.foss@gmail.com>\r
29 In-Reply-To: <87fx45eg55.fsf@steelpick.localdomain>\r
30 References: <4b990b7b.0e67f10a.073c.0686@mx.google.com>\r
31         <alpine.DEB.1.10.1003111748020.9755@dr-wily.mit.edu>\r
32         <87eijqlz54.fsf@steelpick.localdomain> <877hphtx6h.fsf@SSpaeth.de>\r
33         <87fx45eg55.fsf@steelpick.localdomain>\r
34 Date: Fri, 12 Mar 2010 17:03:04 +0100\r
35 Message-ID: <87k4thplxj.fsf@SSpaeth.de>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain; charset=us-ascii\r
38 Cc: notmuch <notmuch@notmuchmail.org>\r
39 Subject: Re: [notmuch] Notmuch command interface\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Fri, 12 Mar 2010 16:03:10 -0000\r
53 \r
54 On Fri, 12 Mar 2010 16:03:34 +0100, Michal Sojka <sojkam1@fel.cvut.cz> wrote:\r
55 > On Fri, 12 Mar 2010, Sebastian Spaeth wrote:\r
56 > > > Unfortunately, I didn't make much progress in implementating this, but\r
57 > > > it's definitely a priority for me because I want to get rid of slow\r
58 > > > notmuchsync.\r
59 > > \r
60 > > notmuchsync master is now using the json output, by the way. I think\r
61 > > that suppressing the output of msg bodies in notmuch show will help\r
62 > > notmuchsync performance *a lot*.\r
63\r
64 > I've just tried it :-(\r
65 >   File "/usr/lib/pymodules/python2.5/simplejson/decoder.py", line 353, in raw_decode\r
66 >     raise ValueError("No JSON object could be decoded")\r
67 > ValueError: No JSON object could be decoded\r
68 \r
69 Wow, that is bad. All it does is taking "nomuch show" output and feeding\r
70 it to the json parser. That probably means that the json was not valid\r
71 (which would be bad).\r
72 \r
73 Having said that, I remember that I got that when I used a notmuch that\r
74 doesn't include the notmuch tags in the json output, ie you need notmuch\r
75 from current master less than 26h ago. Do you use that?\r
76 \r
77 Also Python 2.6 is a requirement, but I see you used that already...\r
78 Sebastian \r