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 250E3431FD0 for ; Mon, 21 Mar 2011 09:33:01 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.29 X-Spam-Level: X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled 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 NsX7Zfy0CQ6P for ; Mon, 21 Mar 2011 09:33:00 -0700 (PDT) Received: from brinza.cc.columbia.edu (brinza.cc.columbia.edu [128.59.29.8]) by olra.theworths.org (Postfix) with ESMTP id 50D75431FB6 for ; Mon, 21 Mar 2011 09:33:00 -0700 (PDT) Received: from servo.finestructure.net (cpe-98-149-172-122.socal.res.rr.com [98.149.172.122]) (user=jgr2110 author=jrollins@servo.finestructure.net mech=PLAIN bits=0) by brinza.cc.columbia.edu (8.14.4/8.14.3) with ESMTP id p2LGWvIx027680 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Mon, 21 Mar 2011 12:32:58 -0400 (EDT) Received: from jrollins by servo.finestructure.net with local (Exim 4.74) (envelope-from ) id 1Q1i2J-00042q-OD; Mon, 21 Mar 2011 09:32:55 -0700 From: Jameson Rollins To: Sebastian Spaeth , Notmuch Mail Subject: Re: problem with folder: search in python bindings In-Reply-To: <877hbsfq4q.fsf@SSpaeth.de> References: <87tyf4xmm1.fsf@servo.finestructure.net> <87aagv2z92.fsf@SSpaeth.de> <87y64dk9da.fsf@servo.finestructure.net> <877hbsfq4q.fsf@SSpaeth.de> User-Agent: Notmuch/0.5-137-g2e489e3 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Mon, 21 Mar 2011 09:32:52 -0700 Message-ID: <871v20bfij.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.68 on 128.59.29.8 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: Mon, 21 Mar 2011 16:33:01 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Mon, 21 Mar 2011 16:29:57 +0100, Sebastian Spaeth = wrote: > On Thu, 17 Mar 2011 09:19:29 -0700, Jameson Rollins wrote: > > Hey, Sebastian. Can you share your notmuch.py script? >=20 > No, it's my secret plan for earning my pension :). > You already got it: > http://git.notmuchmail.org/git/notmuch/blob/HEAD:/bindings/python/notmuch= .py Thanks, Sebastian. Very convenient of you to include it in the repo! > Let me know what you find out. So right off the bat I'm seeing a big discrepancy between the results From=20notmuch and notmuch.py: servo:~/src/notmuch/git [personal] 0$ notmuch count from:jrollins 34358 servo:~/src/notmuch/git [personal] 0$ ./bindings/python/notmuch.py count fr= om:jrollins 34358 servo:~/src/notmuch/git [personal] 0$ notmuch count folder:sent 635 servo:~/src/notmuch/git [personal] 0$ ./bindings/python/notmuch.py count fo= lder:sent 7 servo:~/src/notmuch/git [personal] 0$=20 As you can see, the two interfaces are returning the same results for the "from:jrollins" search, but the binary is returning 635 results for the "folder:sent" search while the python interface is returning 7. That's a big discrepancy. This must be related to the same problem I was seeing with my test case. I'm running notmuch.py from my "personal" branch, which is the same branch that the binary has been compiled from. My database has also recently been rebuild from the same branch. I really have no idea what could be going on here. It's a stranger result even than the one I was seeing before, since it is actually returning *some* results. Any suggestions about how we might go about debugging this? jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJNh320AAoJEO00zqvie6q86M0QAKKaosIJaqYWq6Au1rmUa2lP a+QFq21g+NrnaNf9iiqbBh5p2QuBd65cHlZ+sd4mVcCNTp2TxdvYoNMi51bp1SjM LaXViBUjdxP5uwf1Foqbl7OCCHgZNPqnijsYrsLDfKgTIaKd4ED9/WlRxBdHSIwL tFl570wojA3qf2YFWzjRqQx0yxmEsDEbgrYVgSmLd4FDKy8PsOCjl0L1uMXsxGy1 GGovm7eWkpOCZ1YGXRWQW3TE90nc++ZnnHIsexvE3Tl7mqGF8ov8StzvQ3ZzvJUl Gv7vAF5Rqh0uxcJ44jKCM2BQ1k3XexL2R+qjjNtTRpuc3l0wnQALuw/2q1Jfddwf 7GDi40vCpusVMdr6uEmjzdmz2ow/jEQLBStbYSfPLz8SI88moTLbHTSJ03kEoaYt SwnH74cSex8a0UEcYgCYhTN/dQhlj3baQ+vn1j+JUQ6rrnXzqzQW9NhH59g4w4wn U5nFwLGLbAA9GOWinw4IK+bdrg14AjvNoT6TlkMPtEAvI0s2UNAb8BBVkurQ99wE xq1wMZG+CLWUYjOhjBwGBh/bYevqs3F6SDXx8D42SEooGVE56nLqCkLgcODZQ+GA IXhul6H50Sq51Pm5Wbw4zjZ5gB8sbcPWaCDEuyRUf8NCgn8Ho9+2ReVGFcipAqOr UDaeq3FwdeSyMBSjqLHj =Uf7s -----END PGP SIGNATURE----- --=-=-=--