X-Envelope-From: notmuch-bounces@notmuchmail.org  Thu Apr 23 23:24:41 2026
Return-Path: <notmuch-bounces@notmuchmail.org>
X-Original-To: nmbug@yantan.tethera.net
Delivered-To: nmbug@yantan.tethera.net
Received: from yantan.tethera.net (localhost [127.0.0.1])
	by mail.notmuchmail.org (Postfix) with ESMTP id B16EF5F872;
	Thu, 23 Apr 2026 23:24:41 +0000 (UTC)
X-Greylist: delayed 367 seconds by postgrey-1.36 at yantan; Thu, 23 Apr 2026 23:24:39 UTC
Received: from phubs.tethera.net (phubs.tethera.net [IPv6:2607:5300:60:3a9d::1])
	by mail.notmuchmail.org (Postfix) with ESMTPS id 168775F813
	for <notmuch@notmuchmail.org>; Thu, 23 Apr 2026 23:24:39 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tethera.net;
 i=@tethera.net; q=dns/txt; s=2024; t=1776986308; h=from : to : cc :
 subject : date : message-id : mime-version : content-transfer-encoding
 : from; bh=hgX52gfjPFMRAhnC95enUSlB6wKyRz9ilxtfiBf83fA=;
 b=lAMbbT62ff6QJqWmDimuQs4X4IqElsscs+n9wH9SHytvYTTu8f6f5rJC9GpOgTdAaWXkv
 LOB66i9h2rqDBHA//EFCuecjVWO2Kg4j7GWjCem/d7gs+7SeRIJHSR6Lj23fauMABhX1nG4
 LgvzytHVQ04KjPZr1u8fP8+wSOpHTz5WX9qMvrWPkA0rrwY6TCprJgU3gWR66zjb0VfuuXH
 WCBOcEXvgBMAPNFf3tTZsKQjHfPJ0QFo/mWGF7qrcWNOdhlg9S1ejgcQAduz5ISUfrLYqiF
 fBpkMdGwjoOwAvVOg9SMJMSEN98rVKTaLI9poJQfb2KScQodOjirVw18L65A==
Received: from tethera.net (M111108027213.v4.enabler.ne.jp [111.108.27.213])
	by phubs.tethera.net (Postfix) with ESMTPS id 43EC71800F7;
	Thu, 23 Apr 2026 20:18:28 -0300 (ADT)
Received: (nullmailer pid 3036704 invoked by uid 1000);
	Thu, 23 Apr 2026 23:18:24 -0000
From: David Bremner <david@tethera.net>
To: notmuch@notmuchmail.org
Subject: [PATCH] test: regression test for custom header config in python
Date: Fri, 24 Apr 2026 08:18:19 +0900
Message-ID: <20260423231819.3036692-1-david@tethera.net>
X-Mailer: git-send-email 2.53.0
MIME-Version: 1.0
Message-ID-Hash: PYR44UDCVKGEAM6V5MOGSPIXMB7N4V7G
X-Message-ID-Hash: PYR44UDCVKGEAM6V5MOGSPIXMB7N4V7G
X-MailFrom: bremner@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." <notmuch.notmuchmail.org>
List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
List-Owner: <mailto:notmuch-owner@notmuchmail.org>
List-Post: <mailto:notmuch@notmuchmail.org>
List-Subscribe: <mailto:notmuch-join@notmuchmail.org>
List-Unsubscribe: <mailto:notmuch-leave@notmuchmail.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

According to https://github.com/gauteh/lieer/issues/238, at some point
there was a problem with lieer getting some config info, that seems to
have "gone away". This test is intended to prevent this kind of
problem from creeping (back?) into the bindings.
---
 test/T392-python-cffi-notmuch.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/test/T392-python-cffi-notmuch.sh b/test/T392-python-cffi-notmuch.sh
index 06161219..2cd3b919 100755
--- a/test/T392-python-cffi-notmuch.sh
+++ b/test/T392-python-cffi-notmuch.sh
@@ -45,4 +45,15 @@ cat <<EOF > EXPECTED
 EOF
 test_expect_equal_file EXPECTED OUTPUT.sample
 
+test_begin_subtest "custom header config"
+notmuch config set index.header.List List-Id
+test_python <<EOF | grep ^index > OUTPUT
+from notmuch2 import Database
+db = Database(config=Database.CONFIG.SEARCH)
+print(db.config['index.header.List'])
+EOF
+cat<<EOF > EXPECTED
+List-Id
+EOF
+test_expect_equal_file EXPECTED OUTPUT
 test_done
-- 
2.53.0

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org
