X-Envelope-From: notmuch-bounces@notmuchmail.org  Wed Jun 17 20:07:19 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 973305F870;
	Wed, 17 Jun 2026 20:07:19 +0000 (UTC)
Received: from dsmtpq2-prd-nl2-vfz.edge.unified.services (dsmtpq2-prd-nl2-vfz.edge.unified.services [84.116.73.67])
	by mail.notmuchmail.org (Postfix) with ESMTPS id 12F8D5E538
	for <notmuch@notmuchmail.org>; Wed, 17 Jun 2026 20:07:16 +0000 (UTC)
Received: from csmtpq1-prd-nl2-vfz.edge.unified.services ([84.116.73.105])
	by dsmtpq2-prd-nl2-vfz.edge.unified.services with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
	(Exim 4.97)
	(envelope-from <dick@mrns.nl>)
	id 1wZvtW-0000000BNjz-3teG
	for notmuch@notmuchmail.org;
	Wed, 17 Jun 2026 21:25:50 +0200
Received: from csmtp2-prd-nl2-vfz.nl2.unified.services ([100.105.153.34] helo=csmtp2-prd-nl2-vfz.edge.unified.services)
	by csmtpq1-prd-nl2-vfz.edge.unified.services with esmtp (Exim 4.97)
	(envelope-from <dick@mrns.nl>)
	id 1wZvtT-00000008sOe-3swV
	for notmuch@notmuchmail.org;
	Wed, 17 Jun 2026 21:25:47 +0200
Received: from routi.mrns.nl ([IPv6:2001:1c00:e7ab:b100::1])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits)
	(Client did not present a certificate)
	by csmtp2-prd-nl2-vfz.edge.unified.services with ESMTPSA
	id ZvtSwqv0TlHTlZvtSwhgB3; Wed, 17 Jun 2026 21:25:47 +0200
X-Env-Mailfrom: dick@mrns.nl
X-Env-Rcptto: notmuch@notmuchmail.org
X-SourceIP: 2001:1c00:e7ab:b100::1
X-CNFS-Analysis: v=2.4 cv=KuF9H2WN c=1 sm=1 tr=0 ts=6a32f4bb cx=a_exe
 a=zoMZDlfXL7gFr1RgeGQq5Q==:617 a=xqWC_Br6kY4A:10 a=FelO9ux0wxsA:10
 a=LQrtYbNyCH8A:10 a=HezYwkv_3Df4t45buCwA:9 a=Av7yWsGLcrdQWtvRfR4n:22
X-Authenticated-Sender: ieb1yoh3@ziggo.nl
Received: by routi.mrns.nl (sSMTP sendmail emulation); Wed, 17 Jun 2026 21:25:46 +0200
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mrns.nl;
 i=@mrns.nl; q=dns/txt; s=mail; t=1781724346; h=from : to : cc :
 subject : date : message-id : in-reply-to : references : mime-version
 : content-transfer-encoding : from;
 bh=PGDyZ9dzwVK6yDhotsboiDY5CkCiUqm6Foeh/m9o+lQ=;
 b=Qz9wF5t8dKVmrzKNXOwpdlYyBNOmKnGpiorr8gL5hm4/TFGJWLmEXrHRTdV6kTPRMCL0L
 RwTdED/bzBpdU/eOuacyzORYvKjhpbnXQlsCSC6BzyVsU7UZLLmvv/aJ1M6FNOh8OlXkXCt
 N9RCKgCj78fymL9SlUCaP0YndoYFdME=
From: Dick Marinus <dick@mrns.nl>
To: notmuch@notmuchmail.org
Subject: [PATCH 1/2] CLI/reply: use static const for reply_to_map
Date: Wed, 17 Jun 2026 21:25:41 +0200
Message-ID: <20260617192542.3516741-2-dick@mrns.nl>
X-Mailer: git-send-email 2.54.0
In-Reply-To: <20260617192542.3516741-1-dick@mrns.nl>
References: <20260617192542.3516741-1-dick@mrns.nl>
MIME-Version: 1.0
X-CMAE-Envelope: MS4xfKl81N53LYa9nBUJh23T9PWfTRMRcB5zmoHGqZpsAZ1IcygAGE1cp4Cwyp9Bop4ADWTlCTw9QYHLQlpxvnoKIUnOCpyVo7QcTSZgT72SrPnAki+MSMtJ
 wahkIg3m8prqSDusWD1o3SZQ4oKjGx2JupjW0PumD0TENPtiiEjuo5SxRxc9Df8DB+uTiEL0KpchjEOTY6bdwqqpqLt6nBXyBsrbtSkvmrRefkh6688rr1r9
Message-ID-Hash: EZG2MXCFZTUGKB4BEMJ6CKDCL3DHUWDK
X-Message-ID-Hash: EZG2MXCFZTUGKB4BEMJ6CKDCL3DHUWDK
X-MailFrom: dick@mrns.nl
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
CC: Dick Marinus <dick@mrns.nl>
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

It's recommended to store these functions in a const struct, for some
reason I even got a segmentation fault without this.
---
 notmuch-reply.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/notmuch-reply.c b/notmuch-reply.c
index 44297251d..c72ca227e 100644
--- a/notmuch-reply.c
+++ b/notmuch-reply.c
@@ -329,7 +329,7 @@ add_recipients_from_message (GMimeMessage *reply,
 			     GMimeMessage *message,
 			     bool reply_all)
 {
-    struct {
+    static const struct {
 	InternetAddressList * (*get_header)(GMimeMessage *message);
 	GMimeAddressType recipient_type;
     } reply_to_map[] = {
-- 
2.54.0

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