From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GKgLKkFgd2FCFAAAgWs5BA (envelope-from ) for ; Tue, 26 Oct 2021 03:56:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UPORJUFgd2EsMgAAbx9fmQ (envelope-from ) for ; Tue, 26 Oct 2021 01:56:17 +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 D5138B79A for ; Tue, 26 Oct 2021 03:56:16 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 624E81F54A; Mon, 25 Oct 2021 21:56:13 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id A8A131F545 for ; Mon, 25 Oct 2021 21:56:10 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 940EC5FC42; Mon, 25 Oct 2021 21:56:10 -0400 (EDT) Received: (nullmailer pid 3157751 invoked by uid 1000); Tue, 26 Oct 2021 01:56:09 -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: Mon, 25 Oct 2021 22:56:09 -0300 Message-ID: <87cznswnuu.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: FUN2XTONL5KVFFYG4SFD2PDDLCVN4VKK X-Message-ID-Hash: FUN2XTONL5KVFFYG4SFD2PDDLCVN4VKK 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635213377; 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=m9VSXsdGe144iFOuhbATc0lN7pykQZLRlA8r4tZObdA=; b=mWdBM4VnsHgfPiYZxLs/Cqf9KIRE5gargSMCNdD/x1V0d8DxrESrEbX2LvaXbIyW+GQS6r BX7o/2htQlhC9u0e/Jhv64E3QNNqKBqDGj5rxtwDPXMvFvGy7OpdFYchAtBgDhPO9Ktxey a46+MmMacC9y3rmZ0fAqg7v3dMYSJEO6LvfDxrDplk57i8MhI+RdrSXrlMhGti+FCY2bgv LIzhZdz3wfaFYu8IEzLmVEGen5OyN2rBt5nQCyZ0w2M0p6OhSqwg+ADtJpN+1WRtB8YIqg omEGw1HojDiEI/6Cmzz2bKvoFLvantsbZ3Fvlim1t2H70U+Gp7KZVn5H+jU9Xg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635213377; a=rsa-sha256; cv=none; b=KycuZesLfoXQ9tLzD37k8HQyTZS8lXsV8WfKE9XzAUc5SkkMdnVDWKR13t7qd74dh4eFsu ZZyUeZnOY4QGFce28qC7uqOio4jvYgpKvTm/6vAFsZOGDcEHBMk9fnp7j01ZblclYHsEK+ 2xtDW5Q7dHjNxJhYLMu4wL2v9DPrx8ek1YgP2M/jxETkQjJh1SkgJF5vZhllh1nBdTfsHh EEmJmooh6Bz1iPqL0NOGQOXLRaAI8deFhPBiWislhfqr9oHkdYiraVWL5qEgLFF0jkYKvQ WdivHnk5t6mOsALZp4WS2398hmO2rk9k05aMvf1/Z78l1Rw3/l3IhdMlNZ1BdA== 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: -2.15 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: D5138B79A X-Spam-Score: -2.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: X+/WCmoxuqWI 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. Yep, the change is split configurations (database.path != database.mail_root). The python bindings (both of them) need to be updated to handle split configurations. In a sense this is related to notmuch version, since split configurations are not supported prior to 0.32, but the workaround is (for now) don't use split configurations if you need the python bindings.