From: Michal Sojka <sojkam1@fel.cvut.cz>
To: Sebastian Spaeth <Sebastian@SSpaeth.de>,
David A Benjamin <davidben@MIT.EDU>,
Ben Gamari <bgamari.foss@gmail.com>
Cc: notmuch <notmuch@notmuchmail.org>
Subject: Re: Notmuch command interface
Date: Fri, 12 Mar 2010 16:03:34 +0100 [thread overview]
Message-ID: <87fx45eg55.fsf@steelpick.localdomain> (raw)
In-Reply-To: <877hphtx6h.fsf@SSpaeth.de>
On Fri, 12 Mar 2010, Sebastian Spaeth wrote:
> > Unfortunately, I didn't make much progress in implementating this, but
> > it's definitely a priority for me because I want to get rid of slow
> > notmuchsync.
>
> notmuchsync master is now using the json output, by the way. I think
> that suppressing the output of msg bodies in notmuch show will help
> notmuchsync performance *a lot*.
I've just tried it :-(
+ /home/wsh/src/notmuchsync/notmuchsync -s -n -d
20100312 15:59:37 - DEBUG - Execute ['notmuch', 'show', '--format=json', '1265813977..1270997977']
Traceback (most recent call last):
File "/home/wsh/src/notmuchsync/notmuchsync", line 76, in <module>
all_mails=all_mails)
File "/home/wsh/src/notmuchsync/notmuch/notmuch.py", line 434, in syncTags
msgs = self.show(searchterm, wholeThread=False)
File "/home/wsh/src/notmuchsync/notmuch/notmuch.py", line 372, in show
json_forest = json.loads(stdout)
File "/usr/lib/pymodules/python2.5/simplejson/__init__.py", line 307, in loads
return _default_decoder.decode(s)
File "/usr/lib/pymodules/python2.5/simplejson/decoder.py", line 335, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/pymodules/python2.5/simplejson/decoder.py", line 353, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Do you know what's wrong? I use notmuch based on commit
d30049d2b9fd5eb113cd99e88d6fa7b40c36d3c5 (current master).
Michal
next prev parent reply other threads:[~2010-03-12 15:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-11 15:25 Notmuch command interface Ben Gamari
2010-03-11 22:52 ` David A Benjamin
2010-03-12 0:52 ` Ben Gamari
2010-03-12 8:31 ` Michal Sojka
2010-03-12 14:46 ` Sebastian Spaeth
2010-03-12 15:03 ` Michal Sojka [this message]
2010-03-12 16:03 ` Sebastian Spaeth
2010-03-14 18:15 ` Michal Sojka
2010-03-14 18:19 ` [PATCH] Produce valid JSON output even if mail body is empty Michal Sojka
2010-03-14 19:01 ` James Westby
2010-03-14 20:44 ` [PATCH] Fix invalid JSON output for NULL strings Michal Sojka
2010-03-12 9:18 ` Notmuch command interface 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=87fx45eg55.fsf@steelpick.localdomain \
--to=sojkam1@fel.cvut.cz \
--cc=Sebastian@SSpaeth.de \
--cc=bgamari.foss@gmail.com \
--cc=davidben@MIT.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).