From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gELIJDKyrGEJMgAAgWs5BA (envelope-from ) for ; Sun, 05 Dec 2021 13:36:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2A2aIDKyrGGdTAAA1q6Kng (envelope-from ) for ; Sun, 05 Dec 2021 12:36:02 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 50796B003 for ; Sun, 5 Dec 2021 13:36:02 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3601E26B0E; Sun, 5 Dec 2021 07:35:57 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 9085A26AA9 for ; Sun, 5 Dec 2021 07:35:54 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id 730475FC42; Sun, 5 Dec 2021 07:35:54 -0500 (EST) Received: (nullmailer pid 687382 invoked by uid 1000); Sun, 05 Dec 2021 12:35:53 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Re: problem with message headers in python bindings In-Reply-To: <87h7d4wp6b.fsf@tethera.net> References: <87h7d4wp6b.fsf@tethera.net> Date: Sun, 05 Dec 2021 08:35:53 -0400 Message-ID: <87r1arqlee.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: H6Z6TGCYJ26MJNMI2KGNWWZZHQKJLQYV X-Message-ID-Hash: H6Z6TGCYJ26MJNMI2KGNWWZZHQKJLQYV X-MailFrom: david@tethera.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; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: FR ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638707762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=kdQ0kbLvkrZ8P05OCv0XF9uSky9aiGxq5depMqYwa3Y=; b=Y2sd7cudsag9ke5DVyNtVbrCKECo/R9Tbrm9kPW7verSENJQceZh/GCIB0c/HBfJzWJqEs duf7/8jQeCHD2oSkbdeb9hK4KRGuiKURUbrQJ7Uj6ERBZn4s07CDzFV3vItXmXjl0pxq/v dABlOYGafkXwdWnTPj+ftR62K4G4x8WtlEe58WJknbXyHaMfAhQ3PjCI6eLUdcO/SL3cCO 8vnFo1GVB/+DmUoq+t9jSnmdWQul6njnGPr4PwP9qVQyey250GeBDh36KqpHIqswrpn+cD 7G24DhkYYkeFg862PaNfCvqHay07/f/+U5OKeT9mCf+ESX5lshqtBIFrQL/UDQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638707762; a=rsa-sha256; cv=none; b=uWIuuK3p40PNHszZGx2M2hT4+qOar5CADnyeHu9b+MtRQZjTZcESR22EXFI/F4NZi6SiuF zdJMK3SQljAamjad58/wl8dv+2PHafXh5WLVYEP1nyyfjFBjRWINg5FlHTfPUdugs5GffW zMKLthCF0QPTWiXdy0GW7D1IP+byKYe29HJqBW9FSUZ+10j+arOsi/N+lov0e5/vsHADwm BeCbtBSHNm/63H7ZUoHzpYzC4vDZBEZVEQLBcO9f3GWdUF6n1wrHzMBRrDAoLa4dYcs0B+ QEpXmH5iixyoTYHvUoPDfTVIq4FoXWlTDa1dEygue6VVOLMggsJi6N6H+2wdDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.99 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 50796B003 X-Spam-Score: -1.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: wgb5fviSTG+W David Bremner writes: > On a host running Debian Stable with python 3.9.2, and notmuch 0.31.4, > both of the attached programs work fine. On my developement host running > notmuch 0.34, both segfault when trying to fetch the 'to' header. This > invokes a more complicated code path, which seems to have broken > sometime between 0.31.4 and 0.34. > > I guess something changed in the library that the bindings need to catch > up with. > > import notmuch2 > > db=notmuch2.Database() > > m=db.find('20211026002252.2823593-1-austin@austinray.io') > > frm=m.header('from') > print(frm) > > to=m.header('To') > print(to) > This is fixed for the new python bindings in commit 0.34.1-9-gd7f95724; should be part of 0.34.2. I think I'm going to ignore the problem with the old bindings, since it pertains to a new feature, and people wanting new features should migrate away from the deprecated bindings. d