Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 36E444048EE for ; Sun, 14 Mar 2010 11:15:56 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.335 X-Spam-Level: X-Spam-Status: No, score=-1.335 tagged_above=-999 required=5 tests=[AWL=-0.225, BAYES_05=-1.11] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5D1HlFbsZGba for ; Sun, 14 Mar 2010 11:15:55 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 22F0A454968 for ; Sun, 14 Mar 2010 11:15:55 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 02A9219F35FE; Sun, 14 Mar 2010 19:15:54 +0100 (CET) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id 2EWC4fWul4ht; Sun, 14 Mar 2010 19:15:52 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 0E90B19F3388; Sun, 14 Mar 2010 19:15:52 +0100 (CET) Received: from steelpick.localdomain (unknown [213.29.198.144]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id BDF53FA003; Sun, 14 Mar 2010 19:15:51 +0100 (CET) Received: from wsh by steelpick.localdomain with local (Exim 4.71) (envelope-from ) id 1NqsLp-0001sD-Nl; Sun, 14 Mar 2010 19:15:45 +0100 From: Michal Sojka To: Sebastian Spaeth , David A Benjamin , Ben Gamari In-Reply-To: <87k4thplxj.fsf@SSpaeth.de> References: <4b990b7b.0e67f10a.073c.0686@mx.google.com> <87eijqlz54.fsf@steelpick.localdomain> <877hphtx6h.fsf@SSpaeth.de> <87fx45eg55.fsf@steelpick.localdomain> <87k4thplxj.fsf@SSpaeth.de> Date: Sun, 14 Mar 2010 19:15:45 +0100 Message-ID: <87mxyabwha.fsf@steelpick.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch Subject: Re: [notmuch] Notmuch command interface X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 18:15:56 -0000 On Fri, 12 Mar 2010 17:03:04 +0100, "Sebastian Spaeth" wrote: > On Fri, 12 Mar 2010 16:03:34 +0100, Michal Sojka wrote: > > 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 :-( > > 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 > > Wow, that is bad. All it does is taking "nomuch show" output and feeding > it to the json parser. That probably means that the json was not valid > (which would be bad). Yes. I found that the problem is caused by emails with an empty body. I'll post a patch to fix this in a while. > Having said that, I remember that I got that when I used a notmuch that > doesn't include the notmuch tags in the json output, ie you need notmuch > from current master less than 26h ago. Do you use that? > > Also Python 2.6 is a requirement, but I see you used that already... Strange, I use default python from Debian which is 2.5.5 and current notmuchsync master runs without problems. -Michal