X-Envelope-From: notmuch-bounces@notmuchmail.org  Thu Jun 25 05:36:14 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 04DA55F87E;
	Thu, 25 Jun 2026 05:36:14 +0000 (UTC)
Received: from meesny.iki.fi (meesny.iki.fi [195.140.195.201])
	by mail.notmuchmail.org (Postfix) with ESMTPS id 901BA5F5E3
	for <notmuch@notmuchmail.org>; Thu, 25 Jun 2026 05:36:11 +0000 (UTC)
Received: from c53 (gw1.nor.fi [185.218.193.67])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange secp256r1 server-signature RSA-PSS (2048 bits) server-digest SHA256)
	(No client certificate requested)
	(Authenticated sender: too)
	by meesny.iki.fi (Postfix) with ESMTPSA id 4gm6wn6JXNzyNS;
	Thu, 25 Jun 2026 08:36:09 +0300 (EEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny;
	t=1782365770;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 in-reply-to:in-reply-to:references:references;
	bh=wxQcxYlDjVuENJ/j80pQzG1LvINJqv6a0i7xKaTU0dg=;
	b=bit4lemIMxoZz95s/IkC7p/pokBH8zzq+lTPI7Axd6ETkN+LD+oDihjJhrwtE6+InjSniH
	/zEWqZNLAuquIXA68/0pxcDvNxSAUC/hjYURHAvTHarQ7hFLdKPSqxAu2zj98XkRHe9tY/
	XQ+RWaqQRrzRNOhzD/9rkAkZz71+kxM=
ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=meesny; cv=none; t=1782365770;
	b=HtDMDhGs7ao6n3ZnCjRSFl4jwq+ZrvL/Pi6EFeQYn9K7FdPWLWW8koZSFoSVuh6Bsu/E5t
	zeo7HorIUt8mX9pxnUSAci6gm4t9SJcqjBfdp7uuSDSWst0lTSFGT1VvhjsQhN0/ObuZ+V
	GhyuM/+HVZPb4UkvKcz1aAZPBxC7N7Q=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi;
	s=meesny; t=1782365770;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 in-reply-to:in-reply-to:references:references;
	bh=wxQcxYlDjVuENJ/j80pQzG1LvINJqv6a0i7xKaTU0dg=;
	b=JIEf933PA020p5Mfhfn/hV86oZCfetATrKCLmxwcqNRBe91jSq+THvULaZBtUlka/OsePJ
	mHV5ElRTtMwV9YHWUSuytbHLT51akonRPw2pSYKx//tkN+ZELiZxoIbD8KOQFXGigHeiog
	UZvnWTsFe/TYbQYqSB2CuaFDeXfw4RE=
ARC-Authentication-Results: i=1;
	ORIGINATING;
	auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi
From: Tomi Ollila <tomi.ollila@iki.fi>
To: Dick Marinus <dick@mrns.nl>, notmuch@notmuchmail.org
Subject: Re: [PATCH 1/2] CLI/reply: use static const for reply_to_map
In-Reply-To: <20260623184003.4144137-2-dick@mrns.nl>
References: <20260623184003.4144137-1-dick@mrns.nl>
 <20260623184003.4144137-2-dick@mrns.nl>
User-Agent: Notmuch/0.40+24~gc45207d (https://notmuchmail.org) Emacs/27.1
X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
	$[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
	!)g;OY^,BjTbr)Np:%c_o'jj,Z
Date: Thu, 25 Jun 2026 08:36:08 +0300
Message-ID: <y128riq.11coeh-too@iki.fi>
MIME-Version: 1.0
Message-ID-Hash: THAMDBIVGNUQ5X44WM3NPDMHFTRBQUOL
X-Message-ID-Hash: THAMDBIVGNUQ5X44WM3NPDMHFTRBQUOL
X-MailFrom: tomi.ollila@iki.fi
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

On Tue, Jun 23 2026, Dick Marinus wrote:

> Makes the structure compile-time constant and often stored in
> read-only location.
>
> Workaround to a problem with GCC (bugzilla #125252) which causes
> a segmentation fault.

This change looks good and commit message looks tolerable to me,

Tomi

> ---
>  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
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org
