From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UNb+Jdmg4l/aZwAA0tVLHw (envelope-from ) for ; Wed, 23 Dec 2020 01:43:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WGK6Idmg4l8oIgAAbx9fmQ (envelope-from ) for ; Wed, 23 Dec 2020 01:43:53 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9523A9403CD for ; Wed, 23 Dec 2020 01:43:52 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 01AAE29CAA; Tue, 22 Dec 2020 20:43:44 -0500 (EST) X-Greylist: delayed 557 seconds by postgrey-1.36 at nmbug; Tue, 22 Dec 2020 20:43:41 EST Received: from mx1.smallsoft.com (mx1.smallsoft.com [139.162.212.128]) by mail.notmuchmail.org (Postfix) with ESMTP id 13C2D29C98 for ; Tue, 22 Dec 2020 20:43:41 -0500 (EST) Received: from localhost (ti0578q161-0598.bb.online.no [109.189.22.93]) by mx1.smallsoft.com (Postfix) with ESMTPSA id E1369C8C5; Wed, 23 Dec 2020 01:34:22 +0000 (UTC) MIME-Version: 1.0 From: Johannes Larsen To: notmuch@notmuchmail.org Subject: python notmuch2 bindings exclude_tags not added correctly to query Date: Wed, 23 Dec 2020 02:34:22 +0100 Message-ID: <160868726210.3559542.13236319044064062818@hue.johslarsen.net> User-Agent: alot/0.9.1 Message-ID-Hash: G5YIYBGVR7X22XK7RFJAPZWSHDRF7ZNO X-Message-ID-Hash: G5YIYBGVR7X22XK7RFJAPZWSHDRF7ZNO X-MailFrom: mail@johslarsen.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============1415252860743692684==" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.63 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 9523A9403CD X-Spam-Score: -2.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: gi+UM4/lL6eV --===============1415252860743692684== Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="===============8879309957177577717==" Content-Disposition: inline --===============8879309957177577717== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable A typo in Database._create_query loses the exclude_tag names during the string to utf-8 conversion. The problem is fixed by this patch applied to current master (ced341e8): diff --git i/bindings/python-cffi/notmuch2/_database.py w/bindings/python-c= ffi/notmuch2/_database.py index 5ab0f20a..868f4408 100644 --- i/bindings/python-cffi/notmuch2/_database.py +++ w/bindings/python-cffi/notmuch2/_database.py @@ -581 +581 @@ class Database(base.NotmuchObject): - tag =3D str.encode('utf-8') + tag =3D tag.encode('utf-8') --=20 johs (Johannes Larsen), (+47) 41435451 --===============8879309957177577717== MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Description: signature Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEpTer3kqGU3pr882G07zxebJvqyYFAl/inp0ACgkQ07zxebJv qybIKQ//doa6TOk3jEfQ6UVO4potklF9klyPr0d9C/JwB7H/i4lCXosvdN/QK12P IxyQUbje0LM4Y8ccZaEfd4fdq+HtY4jb4+8Fodpmmt9T6l3iGXels42lsP1GlYYo lwG3O7lWPjjxyLf6kLVR+Tg2NMs62OBHJBwU/YotlZAn4aAldZhOjXvjpoEb1wx8 DGUGQiJm3iwQWbl+sPN9rRmGGHF53R3tsqpe8ffRUT/GUsbCoD//W/sHxKWu6W0l jTW9kl/0rTg26mvuQZkD183ttIWD6iFAQzS50eb0wRmKg111I9ymF57d41SJ8pDG 8uYbmQ/wFrR84cuIZoMKGJozAUzLzaHKnh2HrNpd2sV0KHGus3CFfVyo38IxUewV +wlBJJiZWY1yQ/2yzH8GzwFX2GSfcZTjERnq3mMtl80uVap6ukpYvJ8L2U8NnZK1 0RNLbF6aT7wgrNJdZTekHhysX/6VVUzmvIyx3MRcfvtMivsApxktQ+EkFCC1Ryy3 G7j1/wxEQRCCC8uKdjpgetXTm0GvruuCJTaWJaB8wKfEc7r7hKtP4U7F45NModeX 5+l6+N/JT57Twd6b1gmScYbnnNMMMLWp4sCa+1DARGWAXmXj9n3TYf9fgw5pkbb1 Jexuk/3egiJEZuxOwfoJh/C9rsBbWyWYAiNdKHjEsmoMY8qI7QY= =OhfP -----END PGP SIGNATURE----- --===============8879309957177577717==-- --===============1415252860743692684== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1415252860743692684==--