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 F2B5F431FD0 for ; Tue, 15 Mar 2011 11:30:45 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.01 X-Spam-Level: X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 tests=[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 hU8kY2DhsvvW for ; Tue, 15 Mar 2011 11:30:45 -0700 (PDT) Received: from paneer.cc.columbia.edu (paneer.cc.columbia.edu [128.59.29.4]) by olra.theworths.org (Postfix) with ESMTP id 2FDBC431FB5 for ; Tue, 15 Mar 2011 11:30:45 -0700 (PDT) Received: from servo.finestructure.net ([69.163.54.8]) (user=jgr2110 author=jrollins@servo.finestructure.net mech=PLAIN bits=0) by paneer.cc.columbia.edu (8.14.4/8.14.3) with ESMTP id p2FIUcne019339 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 15 Mar 2011 14:30:44 -0400 (EDT) Received: from jrollins by servo.finestructure.net with local (Exim 4.74) (envelope-from ) id 1PzZ0r-0001im-6E for notmuch@notmuchmail.org; Tue, 15 Mar 2011 11:30:33 -0700 From: Jameson Rollins To: Notmuch Mail Subject: problem with folder: search in python bindings User-Agent: Notmuch/0.5-137-g2e489e3 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Tue, 15 Mar 2011 11:30:30 -0700 Message-ID: <87tyf4xmm1.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.4 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: Tue, 15 Mar 2011 18:30:46 -0000 --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Transfer-Encoding: quoted-printable Hey, folks. I'm seeing something peculiar with the python bindings. It seems that I am not able to get any results when doing "folder:" searches with the python bindings. I'm using a version of notmuch that includes the folder index patch. Attached is a script that demonstrates the problem. It generates a test repository, then does a couple of searches over it. When running the script, I get the following output: 0$ ./python-folder-search-test Found 2 total files (that's not much mail). Note: Ignoring non-mail file: /home/jrollins/tmp/tmp.1dMO5vnweJ/config Processed 2 total files in almost no time. Added 1 new message to the database. =3D=3D notmuch search '*': thread:0000000000000001 Yest. 23:26 [1/1] Jameson Rollins; python document= ation (inbox signed unread) =3D=3D notmuch search 'folder:sent': thread:0000000000000001 Yest. 23:26 [1/1] Jameson Rollins; python document= ation (inbox signed unread) =3D=3D python search '*': Jameson Rollins (2011-03-14) (inbox signed unr= ead) (-1) replies =3D=3D python search 'folder:sent': 0$=20 You can see that cli notmuch returns search results when searching for "folder:sent". The python bindings, on the other hand, return nothing. Anyone have any idea what could be going on here? I'm not familiar with how the python bindings work, unfortunately. jamie. --=-=-= Content-Type: application/octet-stream Content-Disposition: inline; filename=python-folder-search Content-Transfer-Encoding: base64 Content-Description: script to test python folder: search IyEvYmluL2Jhc2gKCmRpcj0kKG1rdGVtcCAtZCkKdHJhcCAicm0gLXJmICRkaXIiIEVYSVQKCm1r ZGlyICIkZGlyIi9zZW50Cgpub3RtdWNoIHNlYXJjaCAtLW91dHB1dD1maWxlcyB0bzpub3RtdWNo IGZyb206anJvbGxpbnMgXAogICAgfCBoZWFkIC0xIFwKICAgIHwgeGFyZ3MgLUkne30nIGNwICd7 fScgIiRkaXIiL3NlbnQvCgpleHBvcnQgTk9UTVVDSF9DT05GSUc9IiRkaXIiL2NvbmZpZwoKY2F0 IDw8RU9GID4iJE5PVE1VQ0hfQ09ORklHIgpbZGF0YWJhc2VdCnBhdGg9JGRpcgpFT0YKCm5vdG11 Y2ggbmV3CgplY2hvICI9PSBub3RtdWNoIHNlYXJjaCAnKic6Igpub3RtdWNoIHNlYXJjaCAnKicK CmVjaG8gIj09IG5vdG11Y2ggc2VhcmNoICdmb2xkZXI6c2VudCc6Igpub3RtdWNoIHNlYXJjaCAn Zm9sZGVyOnNlbnQnCgplY2hvICI9PSBweXRob24gc2VhcmNoICcqJzoiCnB5dGhvbiAtYyAiaW1w b3J0IG5vdG11Y2gKZGIgPSBub3RtdWNoLkRhdGFiYXNlKCkKcSA9IG5vdG11Y2guUXVlcnkoZGIs ICcqJykKZm9yIG1zZyBpbiBxLnNlYXJjaF9tZXNzYWdlcygpOgogICAgcHJpbnQgbXNnCiIKCmVj aG8gIj09IHB5dGhvbiBzZWFyY2ggJ2ZvbGRlcjpzZW50JzoiCnB5dGhvbiAtYyAiaW1wb3J0IG5v dG11Y2gKZGIgPSBub3RtdWNoLkRhdGFiYXNlKCkKcSA9IG5vdG11Y2guUXVlcnkoZGIsICdmb2xk ZXI6c2VudCcpCmZvciBtc2cgaW4gcS5zZWFyY2hfbWVzc2FnZXMoKToKICAgIHByaW50IG1zZwoi Cg== --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIbBAEBCAAGBQJNf7BGAAoJEO00zqvie6q8q2UP92+U5hxnVnecEjmnBqJCDe9h gO5uFJYd95G290OSyjsPpcnKPvc68L8C4i9WsPYnfGeA7ZLOHtDxltPwsPnz2RXi JU+1NKMhdtlD4pxMhWya1DnB9eO8OxcYspnJvpAX5z0eOd0mf80WvmOoYVWguAra fJnYrqik2430poyEoFNqxz/XZkp7sSq/cen7lPEky0/DluPtmJ85rrBc7N5bKINg uPKFnVkLUscACRh+OJ0kdd8IHqJOZQ2byyYAJdS3rhlAdGXFQ1Iwc9e06NqQMy8F k1WkM9enunTZ8L820O8NuP/7h3fm/G9IjvACuPzCoXHi2wmnd3iHNknkk9qwA+N7 4apSNkhNwmpbINoxj4p97F7KVJHPU4pt8NwUxbewXGf8/GdEUK6szzZSheFvKCeS +GCQmd5Gz67q6S1s75g4rE8B1FmZU5NcYhOmI0ubdZVQiudhesH+C+Xz2zzq2HDj 5oUCySxtUtIkp3sa1dZDW/5RTXU6cTMCgqXsmKu1VcKUPsz7fJK0B2EhiVwuD4xf VfmP1NE+N0rG7sJsqk3buOrAb9iQVqbK3SwgyDDVk5SbPhTFcCEDSOyZRnDfHryF cCDIYL7ZC686EGJ+aibrlMxzkBdPhGQuLr4cIYB+pdl8qV7cQ6RgY95wOs10KhLX KI4Df0nsqkw6JK8HZ48= =OoqU -----END PGP SIGNATURE----- --==-=-=--