GNU bug report logs - #59701
[PATCH] gnu: mailutils: Inform correct path of sendmail.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: EuAndreh <eu@HIDDEN>; Keywords: patch moreinfo; dated Tue, 29 Nov 2022 21:56:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Added tag(s) moreinfo. Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 59701 <at> debbugs.gnu.org:


Received: (at 59701) by debbugs.gnu.org; 13 Dec 2022 06:33:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 13 01:33:26 2022
Received: from localhost ([127.0.0.1]:58327 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p4yr0-0006Q1-G3
	for submit <at> debbugs.gnu.org; Tue, 13 Dec 2022 01:33:26 -0500
Received: from mail.envs.net ([5.199.136.28]:44176)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <iyzsong@HIDDEN>) id 1p4yqx-0006Pr-LB
 for 59701 <at> debbugs.gnu.org; Tue, 13 Dec 2022 01:33:24 -0500
Received: from localhost (mail.envs.net [127.0.0.1])
 by mail.envs.net (Postfix) with ESMTP id BEBB338A2346;
 Tue, 13 Dec 2022 06:33:22 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa;
 t=1670913202; bh=VXVNNBskNkajMPc8KJ/Gx4TcolCYPIPkzHTQrXAkPDY=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=dwGSgCUZlV6U61iqiiAlSA5Do/CLJErlsYMhPXyXd/4YDz2BJQ0pVnPcppe2+hvJG
 18oscdD8puIvDOjW7j3ZBZC1iQPaYDs6Pc5elG7tcyESrhapJmVEqkS34HbhQeLrA4
 yzNSy0fg/3PaIBivJBHnCrpcD09gVzzjn5pVzDa336ygRdeG07k1Hzmzs74hX+xkSJ
 oH7osgKcpwAZzEPcgivp4EJk3eziqSj1XmxhxGGAMd4VQZ32T//2+ujIkqCzMLPYun
 ziCAkDlNfXCdKCuobq1KUHXRnJQhIGmxg6VKncq32/BIe0v3l8Cx0/y/9BvKlchwUG
 qa07Oo/90klTjdm/b+BSNKSJMIIw+noIERn55UME9z4mCyuAZ1A5koyPTsM+Vtw8V5
 kp+GY/AtHcMrtHDSGTKKdU4BbEoAloavFWKNgWenlsqVbb9mWt974SnFHR1cdWSxX1
 d6oxglKkNoYWKwEsqXBNDbolz04INTsQyPU0WRKcpMIPZbxdxFxd7kQ5BohanaaJZT
 l7Gm4NEFk/6i22a9A1xSn3hkaluU9MAn10ypXXsVjYOH9cfi2glrlut05ZOcsfZFkI
 qgBtwxsc7yCaSa/D3FmvuVo3Z4Gjpz27Ot6kdfoDw+RNsRhzOFPwB8KCHJcNBg6YDC
 j+u+jk6GTftp2cM3KE9CUvL8=
X-Virus-Scanned: Debian amavisd-new at mail.envs.net
Received: from mail.envs.net ([127.0.0.1])
 by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id L-5I1qVsVZDQ; Tue, 13 Dec 2022 06:33:18 +0000 (UTC)
Received: from localhost (unknown [182.150.116.135])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest
 SHA256) (No client certificate requested)
 by mail.envs.net (Postfix) with ESMTPSA;
 Tue, 13 Dec 2022 06:33:18 +0000 (UTC)
Received: from localhost (localhost [local])
 by localhost (OpenSMTPD) with ESMTPA id ed185081;
 Tue, 13 Dec 2022 06:33:56 +0000 (UTC)
From: =?utf-8?B?5a6L5paH5q2m?= <iyzsong@HIDDEN>
To: EuAndreh <eu@HIDDEN>
Subject: Re: bug#59701: [PATCH] gnu: mailutils: Inform correct path of
 sendmail.
References: <20221129215541.26224-1-eu@HIDDEN> <87o7spe7do.fsf@nckx>
 <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN>
 <Y4hlLh4Vdyyx4Nsp@3900XT>
 <f0f5a885-f9b9-1072-bf67-3560a1d804c4@HIDDEN>
Date: Tue, 13 Dec 2022 14:33:56 +0800
In-Reply-To: <f0f5a885-f9b9-1072-bf67-3560a1d804c4@HIDDEN> (EuAndreh's
 message of "Thu, 1 Dec 2022 10:30:46 +0000")
Message-ID: <87k02vizhn.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 59701
Cc: 59701 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

EuAndreh <eu@HIDDEN> writes:

>> Can we change that value to $PATH? I checked and I don't have sendmail
>> in /run/setuid-programs, and I know I'd use my msmtp setup for sendmail
>> *for myself* but not for the system if it were available.
>
> With mailutils, I'm afraid this can't be done.

For the `mail` command, it can be customized in a `~/.mailrc` file, maybe:
```
set sendmail=sendmail:/run/setuid-programs/sendmail
# or set sendmail=smtp://127.0.0.1 
```




Information forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.

Message received at 59701 <at> debbugs.gnu.org:


Received: (at 59701) by debbugs.gnu.org; 1 Dec 2022 15:35:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 01 10:35:54 2022
Received: from localhost ([127.0.0.1]:40336 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p0lbO-0000KM-K7
	for submit <at> debbugs.gnu.org; Thu, 01 Dec 2022 10:35:54 -0500
Received: from euandre.org ([216.238.68.100]:59076)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eu@HIDDEN>) id 1p0lbL-0000KG-Cw
 for 59701 <at> debbugs.gnu.org; Thu, 01 Dec 2022 10:35:52 -0500
Received: from euandre.org (localhost [127.0.0.1])
 by euandre.org (Postfix) with ESMTP id 5C3C63CC241;
 Thu,  1 Dec 2022 12:35:50 -0300 (-03)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=euandre.org; h=
 message-id:date:mime-version:to:cc:references:from:subject
 :in-reply-to:content-type:content-transfer-encoding; s=
 dkimproxyout; bh=w68UbRFxdq/15OSRktlS2kf3jiA=; b=GExXj+bPpMvX4T6
 dr5xb5plT62mgJXlh6nMSkDgVPdXRvzyPw6UDibtnNDPpA4T/UIj6NvLa91FM1SY
 JNQx6wEENBFARtfgymyrFM8wAO+o0ruyB/Nj2D1Aj0gDSD0ltf3QvQS3aa+IMP3E
 e0Q1uqa+s7rIwG0SOc53mJL+O/OoqPrlba1sFrJGFuwwde65ayE0tDUsuG/COypM
 jYeeaxnwpkGSL28dDjbkY8ojOwGNbwtHJ1cSJKuSYzD8q2ScQaL5l+mltABIivD/
 iyfTVNDFs/nhZ2PsaXTDdRn4q6+pWiwIwk2eWAqtGUBNn1BAKtFuoepvg8Ow/H1X
 ViGcfYQ==
Message-ID: <1ee39412-92ce-3940-682a-56d4ca9063b6@HIDDEN>
Date: Thu, 1 Dec 2022 15:25:47 +0000
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.5.0
Content-Language: en-US, pt, fr, eo, en
To: Tobias Geerinckx-Rice <me@HIDDEN>
References: <20221129215541.26224-1-eu@HIDDEN> <87o7spe7do.fsf@nckx>
 <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN> <87wn7bxl1g.fsf@nckx>
From: EuAndreh <eu@HIDDEN>
Subject: Re: [bug#59701] [PATCH] gnu: mailutils: Inform correct path of
 sendmail.
In-Reply-To: <87wn7bxl1g.fsf@nckx>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 59701
Cc: 59701 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

 From what I could read and debug from the mailutils source code, this 
would require a non-trivial amount of refactoring, not a couple of 
(substitute* ...) calls some a few files.

This should be done by submitting changes upstream, so that the 
maintainer can properly review and apply them.  I'd say this is how this 
software is written to work right now, and tweaking it would be 
thwarting its core purpose.




Information forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.

Message received at 59701 <at> debbugs.gnu.org:


Received: (at 59701) by debbugs.gnu.org; 1 Dec 2022 14:19:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 01 09:19:22 2022
Received: from localhost ([127.0.0.1]:39972 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p0kPJ-00085K-PL
	for submit <at> debbugs.gnu.org; Thu, 01 Dec 2022 09:19:21 -0500
Received: from tobias.gr ([80.241.217.52]:44552)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1p0kPH-00085B-7t
 for 59701 <at> debbugs.gnu.org; Thu, 01 Dec 2022 09:19:20 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=gOjwruFEEiQJd
 ttuVmswK4AblGNAMrmFmaXxtXozE9I=;
 h=in-reply-to:date:subject:cc:to:
 from:references; d=tobias.gr; b=Agn6ZdWc3SAMZSESWhvNJZVwUKeDYOUzNDD0Wd
 qNCuLxeQZfBKyCRk14TMSe3LtacKDGLCcL4PX5n6fl1ToE6AD/B+/jykhjtPj/UfqOwVig
 Dvw1DyLOEYmiJUQQCvJWd+j11OJiynEuSNEDq3sBC28zaoQqM7TRpw+KCv9CZUeH+vHjTt
 YwboiXp46M2SCPjQuWwk+m6S4FfPV+Kb4WyrOA6S47D/1c2ZEkFPdDljWBwNFq0tva4mDl
 SAW5HGK3ig42671gbFOYI+1s9D/dnqwbvEEMQxEBe6Oq5ciscoEFpusAlj/2896wC3d1s2
 +wUGu1rrEUgw7NSftJGNitFw==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id a12f606f
 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); 
 Thu, 1 Dec 2022 14:19:13 +0000 (UTC)
References: <20221129215541.26224-1-eu@HIDDEN> <87o7spe7do.fsf@nckx>
 <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN>
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: EuAndreh <eu@HIDDEN>
Subject: Re: [bug#59701] [PATCH] gnu: mailutils: Inform correct path of
 sendmail.
Date: Thu, 01 Dec 2022 15:19:37 +0100
In-reply-to: <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN>
BIMI-Selector: v=BIMI1; s=default;
Message-ID: <87wn7bxl1g.fsf@nckx>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 59701
Cc: 59701 <at> debbugs.gnu.org, guix-patches@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

EuAndreh =E5=86=99=E9=81=93=EF=BC=9A
> I did try it, but it was mailutils that I feel forced my hand.=20
> It
> uses a pre-defined list of paths to search, instead of $PATH,=20
> namely:

Thanks, but I think you missed my point.  I suggested *making* it=20
respect $PATH.

Kind regards,

T G-R

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCY4i4PA0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW15CMUA/3QbcKbvkXScx2PAAqEEs1tSmfaaBdnjPyoc6uMJ
UsAXAQDI8t3JhXxpvZ1AjfJcPVyK4nChMh7cc2j7qgXbEB9rDw==
=wP+Q
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Dec 2022 14:19:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 01 09:19:32 2022
Received: from localhost ([127.0.0.1]:39977 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p0kPU-00085X-2E
	for submit <at> debbugs.gnu.org; Thu, 01 Dec 2022 09:19:32 -0500
Received: from lists.gnu.org ([209.51.188.17]:40946)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1p0kPT-00085R-1I
 for submit <at> debbugs.gnu.org; Thu, 01 Dec 2022 09:19:31 -0500
Received: from [2001:470:142:3::10] (helo=eggs.gnu.org)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1p0kPS-0002RM-QC
 for guix-patches@HIDDEN; Thu, 01 Dec 2022 09:19:30 -0500
Received: from tobias.gr ([80.241.217.52])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1p0kPJ-0004uR-Vz
 for guix-patches@HIDDEN; Thu, 01 Dec 2022 09:19:24 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=gOjwruFEEiQJd
 ttuVmswK4AblGNAMrmFmaXxtXozE9I=;
 h=in-reply-to:date:subject:cc:to:
 from:references; d=tobias.gr; b=Agn6ZdWc3SAMZSESWhvNJZVwUKeDYOUzNDD0Wd
 qNCuLxeQZfBKyCRk14TMSe3LtacKDGLCcL4PX5n6fl1ToE6AD/B+/jykhjtPj/UfqOwVig
 Dvw1DyLOEYmiJUQQCvJWd+j11OJiynEuSNEDq3sBC28zaoQqM7TRpw+KCv9CZUeH+vHjTt
 YwboiXp46M2SCPjQuWwk+m6S4FfPV+Kb4WyrOA6S47D/1c2ZEkFPdDljWBwNFq0tva4mDl
 SAW5HGK3ig42671gbFOYI+1s9D/dnqwbvEEMQxEBe6Oq5ciscoEFpusAlj/2896wC3d1s2
 +wUGu1rrEUgw7NSftJGNitFw==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id a12f606f
 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); 
 Thu, 1 Dec 2022 14:19:13 +0000 (UTC)
References: <20221129215541.26224-1-eu@HIDDEN> <87o7spe7do.fsf@nckx>
 <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN>
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: EuAndreh <eu@HIDDEN>
Subject: Re: [bug#59701] [PATCH] gnu: mailutils: Inform correct path of
 sendmail.
Date: Thu, 01 Dec 2022 15:19:37 +0100
In-reply-to: <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN>
BIMI-Selector: v=BIMI1; s=default;
Message-ID: <87wn7bxl1g.fsf@nckx>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
Received-SPF: pass client-ip=80.241.217.52; envelope-from=me@HIDDEN;
 helo=tobias.gr
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
Cc: 59701 <at> debbugs.gnu.org, guix-patches@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

--=-=-=
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

EuAndreh =E5=86=99=E9=81=93=EF=BC=9A
> I did try it, but it was mailutils that I feel forced my hand.=20
> It
> uses a pre-defined list of paths to search, instead of $PATH,=20
> namely:

Thanks, but I think you missed my point.  I suggested *making* it=20
respect $PATH.

Kind regards,

T G-R

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCY4i4PA0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW15CMUA/3QbcKbvkXScx2PAAqEEs1tSmfaaBdnjPyoc6uMJ
UsAXAQDI8t3JhXxpvZ1AjfJcPVyK4nChMh7cc2j7qgXbEB9rDw==
=wP+Q
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.

Message received at 59701 <at> debbugs.gnu.org:


Received: (at 59701) by debbugs.gnu.org; 1 Dec 2022 10:35:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 01 05:35:24 2022
Received: from localhost ([127.0.0.1]:38871 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p0gua-0007YI-Fl
	for submit <at> debbugs.gnu.org; Thu, 01 Dec 2022 05:35:24 -0500
Received: from euandre.org ([216.238.68.100]:56058)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eu@HIDDEN>) id 1p0guY-0007Y1-Bn
 for 59701 <at> debbugs.gnu.org; Thu, 01 Dec 2022 05:35:23 -0500
Received: from euandre.org (localhost [127.0.0.1])
 by euandre.org (Postfix) with ESMTP id 810993AA6FC;
 Thu,  1 Dec 2022 07:35:17 -0300 (-03)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=euandre.org; h=
 message-id:date:mime-version:from:to:references:subject
 :in-reply-to:content-type:content-transfer-encoding; s=
 dkimproxy; bh=5BAmQn3m5DRTYN4vFeGeCZM9yGk=; b=AHAieNL/kkO7bA51YM
 qavANwNbZeHfe5tadD52XF2tXDndtHyybX/wpu1OQjmslp5e4FrZhqduRKsXFVuC
 Lb0BNwF2LvKzzdNLWUCMG1H2fIdWvVhBaFpjTXB5t//vIf3HxqKEZL4HoXMifRqo
 M2t5gNev62JXPaefkZMboZZrNQtFFijWEBo4WO9CbY5u9OApVH1ECe8PBhbVi8C5
 Mo6IpHIYc9CjOYmotneu+RzCebNgnM9lTIPEk2EJY1gOH68duxttPf4wF8DX8Grw
 Hz2lh37dou+gm0Rr8SwW+o2peePyNH8/mWNKYIrgNSbHf4Q0xOgQNY2SAdLbmoVE
 yQMQ==
Message-ID: <a8582985-9354-0218-9404-d112036afa61@HIDDEN>
Date: Thu, 1 Dec 2022 10:15:55 +0000
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.5.0
Content-Language: en-US, pt, fr, eo, en
From: EuAndreh <eu@HIDDEN>
To: Efraim Flashner <efraim@HIDDEN>,
 Tobias Geerinckx-Rice <me@HIDDEN>, 59701 <at> debbugs.gnu.org
References: <20221129215541.26224-1-eu@HIDDEN> <87o7spe7do.fsf@nckx>
 <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN> <Y4hlLh4Vdyyx4Nsp@3900XT>
 <fca4318b-399a-6670-9ff4-1cf4fa62ba3f@HIDDEN>
Subject: Re: [bug#59701] [PATCH] gnu: mailutils: Inform correct path of
 sendmail.
In-Reply-To: <fca4318b-399a-6670-9ff4-1cf4fa62ba3f@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 59701
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Come to think of it, I did try it.  It required a significant amount of 
patches to the source code itself, to the point where one should prepare 
a patchset and send upstream, after refactoring some of the code.

The problem is that the aforementioned search path used is searched at 
compile-time, and if no sendmail binary is found, the absolute fallback 
path is used instead.  So instead of a run-time $PATH lookup, it has a 
compile-time /usr/sbin:/usr/lib:/etc lookup, with a /usr/sbin/sendmail 
fallback.

Ideally we would like to have:

1. not looking for sendmail binaries at compile-time, and relying on 
$PATH instead;
2. not having a fallback absolute path to a fallback binary, and just 
get a ENOENT at runtime instead, plus a few more diagnostic messages to 
STDERR.

As I progressed in achieving that, I had modification on top of 
modification to the build system and the source code, and at some point 
I found myself questioning the approach, as it was becoming too fragile 
and too custom.

There is no bug registered in GNU Mailutils' bug database, but there is 
a thread [0] in its list with people talking about when the exact same 
problem was encountered when our friends at Nix packaged mailutils [1].

The suggestion [2] from the maintainer is actually to put a symlink to 
the setuid sendmail binary where mailutils expects to find it:

 > There's no way to do this currently, except for symlinking the actual
 > sendmail-compatible binary (whatever it is in your distro) to the
 > predefined path (preferably, to the place defined by _PATH_SENDMAIL
 > in your /usr/include/paths.h). In fact, that's what all distros that
 > I've ever seen do.

The difference for Guix (and Nix) is that /usr/sbin/ doesn't even exist, 
so we use the PATH_SENDMAIL macro to tell mailutils where to find 
sendmail, as upstream seems happy with the state of affairs.


[0]: https://lists.gnu.org/archive/html/bug-mailutils/2017-10/msg00004.html
[1]: https://github.com/NixOS/nixpkgs/issues/21008
[2]: https://lists.gnu.org/archive/html/bug-mailutils/2017-10/msg00001.html




Information forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.

Message received at 59701 <at> debbugs.gnu.org:


Received: (at 59701) by debbugs.gnu.org; 1 Dec 2022 10:35:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 01 05:35:24 2022
Received: from localhost ([127.0.0.1]:38869 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p0gua-0007YG-8F
	for submit <at> debbugs.gnu.org; Thu, 01 Dec 2022 05:35:24 -0500
Received: from euandre.org ([216.238.68.100]:56046)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eu@HIDDEN>) id 1p0guY-0007Y0-Be
 for 59701 <at> debbugs.gnu.org; Thu, 01 Dec 2022 05:35:22 -0500
Received: from euandre.org (localhost [127.0.0.1])
 by euandre.org (Postfix) with ESMTP id 931713AA700;
 Thu,  1 Dec 2022 07:35:17 -0300 (-03)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=euandre.org; h=
 message-id:date:mime-version:subject:to:references:from
 :in-reply-to:content-type:content-transfer-encoding; s=
 dkimproxy; bh=JNLWqHGj/XbUbmQsGCMtMfNW2Us=; b=aEBENhXYKFy7wRAaV5
 4zKVZMfNXxYkxGfbAUsYTkhreDaZAwTY6jbPLDCyKBTn74AhbhduVDQVUg/thQzu
 1bUU1i2fiycWHti6i2X/1FcSqB/ubbl8gg+gcGpCVEXgWibBgt0K5deAG/FLUfNe
 BHmMk7Ls+qnVPcDmcTUgY/vxNrzSjEoWycrxHPs6vAGTP0mLVkyQGcYKwRqxZwyW
 1NwlwzKjsyRt19eALVIj0Nf/iT8LaC/P/HYDKrFv5dxWtRBzp0SI+wqvu3/TwT2F
 BXFNbBV6H+OpTV1F7TYDhHBJLrcTVvYZJYuKjlW0HLPIv7V20XtHNfVnrLFemlOF
 5lew==
Message-ID: <fca4318b-399a-6670-9ff4-1cf4fa62ba3f@HIDDEN>
Date: Thu, 1 Dec 2022 09:40:24 +0000
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.5.0
Subject: Re: [bug#59701] [PATCH] gnu: mailutils: Inform correct path of
 sendmail.
Content-Language: en-US, pt, fr, eo, en
To: Efraim Flashner <efraim@HIDDEN>,
 Tobias Geerinckx-Rice <me@HIDDEN>, 59701 <at> debbugs.gnu.org
References: <20221129215541.26224-1-eu@HIDDEN> <87o7spe7do.fsf@nckx>
 <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN> <Y4hlLh4Vdyyx4Nsp@3900XT>
From: EuAndreh <eu@HIDDEN>
In-Reply-To: <Y4hlLh4Vdyyx4Nsp@3900XT>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 59701
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

That's a good idea.  Let me try it.




Information forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Dec 2022 10:35:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 01 05:35:45 2022
Received: from localhost ([127.0.0.1]:38875 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p0guu-0007Yd-TC
	for submit <at> debbugs.gnu.org; Thu, 01 Dec 2022 05:35:45 -0500
Received: from lists.gnu.org ([209.51.188.17]:46876)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eu@HIDDEN>) id 1p0gus-0007YW-AC
 for submit <at> debbugs.gnu.org; Thu, 01 Dec 2022 05:35:43 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eu@HIDDEN>) id 1p0guc-00065P-9G
 for guix-patches@HIDDEN; Thu, 01 Dec 2022 05:35:31 -0500
Received: from euandre.org ([216.238.68.100])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eu@HIDDEN>) id 1p0gua-0004Wu-H5
 for guix-patches@HIDDEN; Thu, 01 Dec 2022 05:35:26 -0500
Received: from euandre.org (localhost [127.0.0.1])
 by euandre.org (Postfix) with ESMTP id 884663AA6FE
 for <guix-patches@HIDDEN>; Thu,  1 Dec 2022 07:35:17 -0300 (-03)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=euandre.org; h=
 message-id:date:mime-version:to:references:from:subject
 :in-reply-to:content-type:content-transfer-encoding; s=
 dkimproxy; bh=KVxlVrzgda93mLiWYz0WxugUNoU=; b=Q8cbITaWwLOPydzwTL
 XFwEshqUBMNRGJFUNwMbT22J4V6R2+kPO5STZ1jIsFVwTx0GunnT6Q2GOyFzMr74
 ao2PpUffCWmN8ufSSogDl1TL6QMycGOZzBdoNm/ModRI2MUeSON1kUXBq5mFl+6A
 AakWD7WOWu67f847gaY5kc55UFXxUDH8JfFUWqjW3Vl7NtMqqnUnqQ5Jujbvpgjk
 cf/E9MLfYwkEhoCUJe9Zrjdtaa5M9Ra3TAqD/3fC7oORh93D0urVurnHHPpHTPie
 sCOXtsN451XGWF6nqcHJrnwmoQfFxHhMAFbL4oXqrcpnQciZ8R8TQriXNzroztbF
 8iCw==
Message-ID: <f0f5a885-f9b9-1072-bf67-3560a1d804c4@HIDDEN>
Date: Thu, 1 Dec 2022 10:30:46 +0000
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.5.0
Content-Language: en-US, pt, fr, eo, en
To: guix-patches@HIDDEN
References: <20221129215541.26224-1-eu@HIDDEN> <87o7spe7do.fsf@nckx>
 <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN> <Y4hlLh4Vdyyx4Nsp@3900XT>
From: EuAndreh <eu@HIDDEN>
Subject: Re: [bug#59701] [PATCH] gnu: mailutils: Inform correct path of
 sendmail.
In-Reply-To: <Y4hlLh4Vdyyx4Nsp@3900XT>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=216.238.68.100; envelope-from=eu@HIDDEN;
 helo=euandre.org
X-Spam_score_int: -23
X-Spam_score: -2.4
X-Spam_bar: --
X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.257,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

> Can we change that value to $PATH? I checked and I don't have sendmail
> in /run/setuid-programs, and I know I'd use my msmtp setup for sendmail
> *for myself* but not for the system if it were available.

With mailutils, I'm afraid this can't be done.

What our Nix friends do is have a module (which is equivalent to a Guix 
service) that accepts a "setSendmail" option [0] which, when true, adds 
the a setuid msmtp binary wrapper [1].

That mixes up user-level and system-level configuration, and the only 
way around is add a user-level alias wrapper for mailutils wrapper that
specifies where to find sendmail at runtime:

     alias mail="mail -E'set 
sendmail=\"$HOME/.guix-home/profile/bin/msmtp\"'"

Doing this to the mailutils package definition would require juggling 
some options around and knowing very well how mailutils handles options, 
so that the dynamic lookup of the sendmail binary doesn't break anything 
else.

[0]: 
https://github.com/NixOS/nixpkgs/blob/353a64f7bac4230a46dfa47a6212902c622b98a2/nixos/modules/programs/msmtp.nix#L15
[1]: 
https://github.com/NixOS/nixpkgs/blob/353a64f7bac4230a46dfa47a6212902c622b98a2/nixos/modules/programs/msmtp.nix#L76




Information forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.

Message received at 59701 <at> debbugs.gnu.org:


Received: (at 59701) by debbugs.gnu.org; 1 Dec 2022 08:26:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 01 03:26:33 2022
Received: from localhost ([127.0.0.1]:38256 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p0ett-0006LM-1k
	for submit <at> debbugs.gnu.org; Thu, 01 Dec 2022 03:26:33 -0500
Received: from mail-wr1-f44.google.com ([209.85.221.44]:37576)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <efraim.flashner@HIDDEN>) id 1p0etq-0006LF-JA
 for 59701 <at> debbugs.gnu.org; Thu, 01 Dec 2022 03:26:31 -0500
Received: by mail-wr1-f44.google.com with SMTP id bs21so1461905wrb.4
 for <59701 <at> debbugs.gnu.org>; Thu, 01 Dec 2022 00:26:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=in-reply-to:content-disposition:mime-version:references
 :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to
 :cc:subject:date:message-id:reply-to;
 bh=PQc+ZF/8UP65pXXT9VZOajuuuhKmtH0DYDYfpwI+5qc=;
 b=QFzNIJk4Vi7DPQ9CJQYgnPGgrDzJHGEQX7qvFSQLrHG5tpKZNX+oYj0gcI1uw/6gO0
 7lSzuAlqkXnHjFo+XBqIje6F8+Vk1Sg7/t05hD/30AV2X4s0TVsL1CN9NXEX3525vlDs
 QNMrpYVgaiDuHF7TFfbpUZPmnPwpCan4Y8mk/zcM9KVejRG4cqAGPfq4bKvcSr9p2gqz
 7smWlHb/W25EEVUeNDNEeoGMLDcH/XWFO/3hOSsk5MRLxbs7rHGsLinfQBGIIHj21smN
 lkjJHPaKUkEkjuKT6QAs2PpSBbifgkuZx0ftlUP91PXu2z96M0ykklIXpt5JSXcItoNI
 dLqQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=in-reply-to:content-disposition:mime-version:references
 :mail-followup-to:message-id:subject:cc:to:from:date:sender
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=PQc+ZF/8UP65pXXT9VZOajuuuhKmtH0DYDYfpwI+5qc=;
 b=QFaKF//7FhXzooFJweHHgwi0j2FMgX1uaK5rxoj6zXHrAfSIW6ubzGH36X6F4lYTEe
 N32geEx6BKmcg40GiCrWJgdP6WWTN9wIURQcE1cCQfGVcU1JafTuuIt6wHmh/dDomAQZ
 oAMhLr6Cnum4/P/N+dFf4WqoXbjNQrlsuB0QOwY1ukDZFIGeTxDaqc4WDtqnUxmjdEsw
 GMkV0R/I0tArbCt0ZUiUmEKqLFou7LGIq9+xuVmlcp8GjBT96h0M1B3PAlUs/5KvipD7
 G8oj1J4aH7djRjmY/6rczYIAGT8HxzZqsvumyVJwZjK/i/Rku8vpDst/zJsr8RyDIT9s
 /UMA==
X-Gm-Message-State: ANoB5pleIEBhfuJYgtqIA8JHuOnpHejmmQ3ku60/B1J/eF1MonMOT2Jk
 wyO2uLYmXfSLmKYq7Kf4JzM=
X-Google-Smtp-Source: AA0mqf7+yNv7oCsFx8B8u3RXI33N+5iFNW403QzhuAmzyoOKnfZS/LF6Iwe88X0x624SjDsA3JnBnQ==
X-Received: by 2002:adf:fc50:0:b0:241:d2de:b11e with SMTP id
 e16-20020adffc50000000b00241d2deb11emr31856193wrs.347.1669883184805; 
 Thu, 01 Dec 2022 00:26:24 -0800 (PST)
Received: from localhost ([141.226.13.150]) by smtp.gmail.com with ESMTPSA id
 co16-20020a0560000a1000b00241b6d27ef1sm3800564wrb.104.2022.12.01.00.26.24
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 01 Dec 2022 00:26:24 -0800 (PST)
Date: Thu, 1 Dec 2022 10:26:22 +0200
From: Efraim Flashner <efraim@HIDDEN>
To: EuAndreh <eu@HIDDEN>
Subject: Re: [bug#59701] [PATCH] gnu: mailutils: Inform correct path of
 sendmail.
Message-ID: <Y4hlLh4Vdyyx4Nsp@3900XT>
Mail-Followup-To: Efraim Flashner <efraim@HIDDEN>,
 EuAndreh <eu@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>,
 59701 <at> debbugs.gnu.org
References: <20221129215541.26224-1-eu@HIDDEN> <87o7spe7do.fsf@nckx>
 <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="JEhhLEcCNob824UY"
Content-Disposition: inline
In-Reply-To: <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN>
X-PGP-Key-ID: 0x41AAE7DCCA3D8351
X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc
X-PGP-Fingerprint: A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 59701
Cc: Tobias Geerinckx-Rice <me@HIDDEN>, 59701 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)


--JEhhLEcCNob824UY
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Nov 29, 2022 at 10:31:33PM +0000, EuAndreh via Guix-patches via wro=
te:
> I did try it, but it was mailutils that I feel forced my hand.  It uses a
> pre-defined list of paths to search, instead of $PATH, namely:
>=20
>   /usr/sbin:/usr/lib:/etc
>=20
> So I feel the opposite ocurred: I wanted it to just rely on $PATH, but
> mailutils used a specific search path, but it at least gives us a way in =
to
> put a custom value.

Can we change that value to $PATH? I checked and I don't have sendmail
in /run/setuid-programs, and I know I'd use my msmtp setup for sendmail
*for myself* but not for the system if it were available.

--=20
Efraim Flashner   <efraim@HIDDEN>   =D7=90=D7=A4=D7=A8=D7=99=D7=9D =
=D7=A4=D7=9C=D7=A9=D7=A0=D7=A8
GPG key =3D A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

--JEhhLEcCNob824UY
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmOIZS4ACgkQQarn3Mo9
g1H2YxAAnK/O9SWU2fg7FwXxZx+ppRO/ZyEoivW4HyNrAAZDRiPLxygGHZTtHEqx
wBQ+Nfm1jzqXfJHGx2vHCRyFBfv8mDs0dzct1ieTvuNHp162wzG4cU+QML/FeT4M
aDkrzVP4kSvB0Fz5OeCYZEBYSEwUwNRd7Js7QgbTCOdQqHlgfAzcJeEt8lUstH5r
H6AZpEIR1/Pdf+NVJRCkY9DIKc8UDVmmZT+SOLQ0MigTEzt5wDBodtQFKAHKHNXp
VJKuyEsVD57zJzvRzZg+ufl4nnTHvr4LAEEddt7MkrCj2S1RBj3RF5D4V/UaXR7u
vT1IdSDaW/tV6PSHxds48DI7LMyP+8NmhH3H4Eoho23O9G/q4Tpns4fhA14d9mnq
+gcvLSUhYWlAXoASEcue9TIjUgWchC14yUguI0A3EB4cCFAfqurWyrcqhFdAqEHh
DI5YixdzKw1wOj+NGVkjUECw5y3pkWxuGJ27RA+xVtlQdplEa205HDpKYhqqrOVA
QQOWyVKYhpRYU4u5p76NIeD7m6FBKcBQGCVMF6SVBepiD/wFBGfmVaQtpEEIsz1Y
y6w4oaB2j7466UIsO4BYrmB4pfiz6dme9I6c9Xa5C4w24SUta2gmxRsRTfe1dbFa
g5cKEnUF9pocM7nhwD3DDhDIzpB5BazVh7JkMVl4fKd1g0LIcEA=
=16iH
-----END PGP SIGNATURE-----

--JEhhLEcCNob824UY--




Information forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.

Message received at 59701 <at> debbugs.gnu.org:


Received: (at 59701) by debbugs.gnu.org; 29 Nov 2022 22:33:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 29 17:33:26 2022
Received: from localhost ([127.0.0.1]:56881 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p09AM-0001oS-0f
	for submit <at> debbugs.gnu.org; Tue, 29 Nov 2022 17:33:26 -0500
Received: from euandre.org ([216.238.68.100]:47732)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eu@HIDDEN>) id 1p09AJ-0001oM-Ah
 for 59701 <at> debbugs.gnu.org; Tue, 29 Nov 2022 17:33:24 -0500
Received: from euandre.org (localhost [127.0.0.1])
 by euandre.org (Postfix) with ESMTP id AE694379438;
 Tue, 29 Nov 2022 19:33:22 -0300 (-03)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=euandre.org; h=
 message-id:date:mime-version:subject:from:to:cc:references
 :in-reply-to:content-type:content-transfer-encoding; s=
 dkimproxy; bh=c0pUtIVkQ5nNnI1bkomUqzgwMdY=; b=O0/YtrC69n01y0RN+j
 aCN6eL4bGCkuC0suR73RAhr7Vu1RCb5PeM02ylkf83mxEPqX/Da7scYCshE5mEw5
 jFc5TnauroFzFdLvap3Bn98GTdtZzggTTvoq54++ULLwN71rAiij0XLQAEEXU8wA
 9LZzVqdFI14NU18ahQX2a0XS8Bu2P3NMfaIDWtgz/V4EK2wp3q73FkHhcLv4Frk+
 UsF75cy4CJp+01F5zSa3xsygaL4BoXXgn55MqJu41JFP8JGZgmu/IOo+FEdRqSC2
 GyTNGKrRvCc6v33c7U822DpPnoIUtBCS9YV3KA3qmC5HXPU/j2Prvk3Z8MikAzPK
 PZaQ==
Message-ID: <06a02b6f-5dcc-0686-95d0-f6e1b274d466@HIDDEN>
Date: Tue, 29 Nov 2022 22:33:18 +0000
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.5.0
Subject: Re: [bug#59701] [PATCH] gnu: mailutils: Inform correct path of
 sendmail.
Content-Language: en-US, pt, fr, eo, en
From: EuAndreh <eu@HIDDEN>
To: Tobias Geerinckx-Rice <me@HIDDEN>
References: <20221129215541.26224-1-eu@HIDDEN> <87o7spe7do.fsf@nckx>
 <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN>
In-Reply-To: <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 59701
Cc: 59701 <at> debbugs.gnu.org, guix-patches@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

This is the *compile-time* search path used by the build system, no the 
runtime one.




Information forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Nov 2022 22:33:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 29 17:33:30 2022
Received: from localhost ([127.0.0.1]:56884 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p09AQ-0001of-8m
	for submit <at> debbugs.gnu.org; Tue, 29 Nov 2022 17:33:30 -0500
Received: from lists.gnu.org ([209.51.188.17]:59348)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eu@HIDDEN>) id 1p09AO-0001oZ-2L
 for submit <at> debbugs.gnu.org; Tue, 29 Nov 2022 17:33:29 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eu@HIDDEN>) id 1p09AM-0006hZ-G0
 for guix-patches@HIDDEN; Tue, 29 Nov 2022 17:33:27 -0500
Received: from euandre.org ([2001:19f0:b400:1f0c:5400:4ff:fe35:8c89])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eu@HIDDEN>) id 1p09AK-00062z-3g
 for guix-patches@HIDDEN; Tue, 29 Nov 2022 17:33:25 -0500
Received: from euandre.org (localhost [127.0.0.1])
 by euandre.org (Postfix) with ESMTP id AE694379438;
 Tue, 29 Nov 2022 19:33:22 -0300 (-03)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=euandre.org; h=
 message-id:date:mime-version:subject:from:to:cc:references
 :in-reply-to:content-type:content-transfer-encoding; s=
 dkimproxy; bh=c0pUtIVkQ5nNnI1bkomUqzgwMdY=; b=O0/YtrC69n01y0RN+j
 aCN6eL4bGCkuC0suR73RAhr7Vu1RCb5PeM02ylkf83mxEPqX/Da7scYCshE5mEw5
 jFc5TnauroFzFdLvap3Bn98GTdtZzggTTvoq54++ULLwN71rAiij0XLQAEEXU8wA
 9LZzVqdFI14NU18ahQX2a0XS8Bu2P3NMfaIDWtgz/V4EK2wp3q73FkHhcLv4Frk+
 UsF75cy4CJp+01F5zSa3xsygaL4BoXXgn55MqJu41JFP8JGZgmu/IOo+FEdRqSC2
 GyTNGKrRvCc6v33c7U822DpPnoIUtBCS9YV3KA3qmC5HXPU/j2Prvk3Z8MikAzPK
 PZaQ==
Message-ID: <06a02b6f-5dcc-0686-95d0-f6e1b274d466@HIDDEN>
Date: Tue, 29 Nov 2022 22:33:18 +0000
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.5.0
Subject: Re: [bug#59701] [PATCH] gnu: mailutils: Inform correct path of
 sendmail.
Content-Language: en-US, pt, fr, eo, en
From: EuAndreh <eu@HIDDEN>
To: Tobias Geerinckx-Rice <me@HIDDEN>
References: <20221129215541.26224-1-eu@HIDDEN> <87o7spe7do.fsf@nckx>
 <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN>
In-Reply-To: <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=2001:19f0:b400:1f0c:5400:4ff:fe35:8c89;
 envelope-from=eu@HIDDEN; helo=euandre.org
X-Spam_score_int: -23
X-Spam_score: -2.4
X-Spam_bar: --
X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.258,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
Cc: 59701 <at> debbugs.gnu.org, guix-patches@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

This is the *compile-time* search path used by the build system, no the 
runtime one.




Information forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.

Message received at 59701 <at> debbugs.gnu.org:


Received: (at 59701) by debbugs.gnu.org; 29 Nov 2022 22:31:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 29 17:31:51 2022
Received: from localhost ([127.0.0.1]:56867 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p098p-0001n2-An
	for submit <at> debbugs.gnu.org; Tue, 29 Nov 2022 17:31:51 -0500
Received: from euandre.org ([216.238.68.100]:53438)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eu@HIDDEN>) id 1p098l-0001mw-20
 for 59701 <at> debbugs.gnu.org; Tue, 29 Nov 2022 17:31:49 -0500
Received: from euandre.org (localhost [127.0.0.1])
 by euandre.org (Postfix) with ESMTP id BB07A37941D;
 Tue, 29 Nov 2022 19:31:45 -0300 (-03)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=euandre.org; h=
 message-id:date:mime-version:to:cc:references:from:subject
 :in-reply-to:content-type:content-transfer-encoding; s=
 dkimproxy; bh=AdMmq5lTkZRq3XQE52ejgv2d9cc=; b=QprH7dBNUpFQ+SNn9F
 CavmHbpWALdyKa1ql/Ydu6Gi534U/U8zOdm6SlJf+icaS9Tc+QmTV3ssx7cKk7So
 Wo/KXlklHwuIaTV7veIla+/VzuybxsMoEFC9s/kRYvaadsJB89yR6b0WxxmTX/D6
 TLHNSQiHuy9QZST2Wr/b4oyBWVWwZkvj2PNb4NNQTgv+mioB9Mzlgl+indE1wZo4
 0SAzZGjbC1iRCB0DQLKzgoU+7inkKjwqxSHoDudLnGw1WbO1RfNwCAMqVXb8iGu0
 um0I8XUb9eOLAVwD89oyhTpkRgbfg3wrLrA3H2sUHDuC6o1ebf8U4srhSo+Pevvd
 +XjA==
Message-ID: <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN>
Date: Tue, 29 Nov 2022 22:31:33 +0000
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.5.0
To: Tobias Geerinckx-Rice <me@HIDDEN>
References: <20221129215541.26224-1-eu@HIDDEN> <87o7spe7do.fsf@nckx>
Content-Language: en-US, pt, fr, eo, en
From: EuAndreh <eu@HIDDEN>
Subject: Re: [bug#59701] [PATCH] gnu: mailutils: Inform correct path of
 sendmail.
In-Reply-To: <87o7spe7do.fsf@nckx>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 59701
Cc: 59701 <at> debbugs.gnu.org, guix-patches@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

I did try it, but it was mailutils that I feel forced my hand.  It uses 
a pre-defined list of paths to search, instead of $PATH, namely:

   /usr/sbin:/usr/lib:/etc

So I feel the opposite ocurred: I wanted it to just rely on $PATH, but 
mailutils used a specific search path, but it at least gives us a way in 
to put a custom value.




Information forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Nov 2022 22:31:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 29 17:31:57 2022
Received: from localhost ([127.0.0.1]:56872 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p098v-0001nM-JT
	for submit <at> debbugs.gnu.org; Tue, 29 Nov 2022 17:31:57 -0500
Received: from lists.gnu.org ([209.51.188.17]:60328)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eu@HIDDEN>) id 1p098r-0001nF-QY
 for submit <at> debbugs.gnu.org; Tue, 29 Nov 2022 17:31:56 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eu@HIDDEN>) id 1p098r-0006Aw-G0
 for guix-patches@HIDDEN; Tue, 29 Nov 2022 17:31:53 -0500
Received: from euandre.org ([216.238.68.100])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eu@HIDDEN>) id 1p098l-0005if-Se
 for guix-patches@HIDDEN; Tue, 29 Nov 2022 17:31:51 -0500
Received: from euandre.org (localhost [127.0.0.1])
 by euandre.org (Postfix) with ESMTP id BB07A37941D;
 Tue, 29 Nov 2022 19:31:45 -0300 (-03)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=euandre.org; h=
 message-id:date:mime-version:to:cc:references:from:subject
 :in-reply-to:content-type:content-transfer-encoding; s=
 dkimproxy; bh=AdMmq5lTkZRq3XQE52ejgv2d9cc=; b=QprH7dBNUpFQ+SNn9F
 CavmHbpWALdyKa1ql/Ydu6Gi534U/U8zOdm6SlJf+icaS9Tc+QmTV3ssx7cKk7So
 Wo/KXlklHwuIaTV7veIla+/VzuybxsMoEFC9s/kRYvaadsJB89yR6b0WxxmTX/D6
 TLHNSQiHuy9QZST2Wr/b4oyBWVWwZkvj2PNb4NNQTgv+mioB9Mzlgl+indE1wZo4
 0SAzZGjbC1iRCB0DQLKzgoU+7inkKjwqxSHoDudLnGw1WbO1RfNwCAMqVXb8iGu0
 um0I8XUb9eOLAVwD89oyhTpkRgbfg3wrLrA3H2sUHDuC6o1ebf8U4srhSo+Pevvd
 +XjA==
Message-ID: <a80d748a-7e96-822b-b501-9c05c7637f02@HIDDEN>
Date: Tue, 29 Nov 2022 22:31:33 +0000
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.5.0
To: Tobias Geerinckx-Rice <me@HIDDEN>
References: <20221129215541.26224-1-eu@HIDDEN> <87o7spe7do.fsf@nckx>
Content-Language: en-US, pt, fr, eo, en
From: EuAndreh <eu@HIDDEN>
Subject: Re: [bug#59701] [PATCH] gnu: mailutils: Inform correct path of
 sendmail.
In-Reply-To: <87o7spe7do.fsf@nckx>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=216.238.68.100; envelope-from=eu@HIDDEN;
 helo=euandre.org
X-Spam_score_int: -23
X-Spam_score: -2.4
X-Spam_bar: --
X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.258,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
Cc: 59701 <at> debbugs.gnu.org, guix-patches@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

I did try it, but it was mailutils that I feel forced my hand.  It uses 
a pre-defined list of paths to search, instead of $PATH, namely:

   /usr/sbin:/usr/lib:/etc

So I feel the opposite ocurred: I wanted it to just rely on $PATH, but 
mailutils used a specific search path, but it at least gives us a way in 
to put a custom value.




Information forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.

Message received at 59701 <at> debbugs.gnu.org:


Received: (at 59701) by debbugs.gnu.org; 29 Nov 2022 22:12:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 29 17:12:51 2022
Received: from localhost ([127.0.0.1]:56770 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p08qR-0001bb-Ay
	for submit <at> debbugs.gnu.org; Tue, 29 Nov 2022 17:12:51 -0500
Received: from tobias.gr ([80.241.217.52]:35316)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1p08qP-0001bV-09
 for 59701 <at> debbugs.gnu.org; Tue, 29 Nov 2022 17:12:50 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=4ncLhUMcNKUip
 w7IhdZzOFAHEFwScanDSC5paQZHGoo=;
 h=in-reply-to:date:subject:cc:to:
 from:references; d=tobias.gr; b=WFK5XawPNp+6dOK6T5vDcXVZ2Q9j7nByPAcKce
 piegDJO2xhji5DnLLKuvLn9pSB5EKEZI5zzP1fLnE9q+re5VzA59D1UWlwPiUyU8GPDA0d
 34Ev0xg7X3bXqHXXzg0g/4bQVB/1BVi3qEE2kl6shnF+n2mogGrVjHeZBnTCovElzAH4tS
 WmqUChb5aNzFx2UR04Qrjn8MCKTJrs66FUl30tvWFBKEKw9AWaF5bI2mcCqQ4cf11IuQQw
 zeqCyLyzVqqMKGqkj5rtRpzPZ+m/nU7uCtmfNcusf3UZWXQ+i6NH9GdS75plO9qMNmifcB
 1rVkMGuv5meN8FzQ9v8rGYYA==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 4f9e361b
 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); 
 Tue, 29 Nov 2022 22:12:45 +0000 (UTC)
References: <20221129215541.26224-1-eu@HIDDEN>
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: EuAndreh <eu@HIDDEN>
Subject: Re: [bug#59701] [PATCH] gnu: mailutils: Inform correct path of
 sendmail.
Date: Tue, 29 Nov 2022 23:11:03 +0100
In-reply-to: <20221129215541.26224-1-eu@HIDDEN>
BIMI-Selector: v=BIMI1; s=default;
Message-ID: <87o7spe7do.fsf@nckx>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 59701
Cc: 59701 <at> debbugs.gnu.org, guix-patches@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

EuAndreh via Guix-patches via =E5=86=99=E9=81=93=EF=BC=9A
> * gnu/packages/mail.scm (mailutils)[arguments]: Add=20
> -DPATH_SENDMAIL
>   to CFLAGS pointing to /run/setuid-programs.

Thanks!

Did you try making mailutils simply respect $PATH instead?  Do you=20
know why it doesn't?  Can't?

Hard-coding a distribution-specific location is something we often=20
bemoan other packages doing=E2=80=A6

Kind regards,

T G-R

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCY4aEJA0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW158WAA/iiEV8BEXJJw6p6cWLa4WOuXvFMWsiWVIBg88DJi
9TLkAQCozXoN220qPbeNEXD/sC+4gavFIcttx89sH8vXTpkPCA==
=v9na
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Nov 2022 22:13:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 29 17:13:00 2022
Received: from localhost ([127.0.0.1]:56774 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p08qa-0001bp-Lt
	for submit <at> debbugs.gnu.org; Tue, 29 Nov 2022 17:13:00 -0500
Received: from lists.gnu.org ([209.51.188.17]:49872)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1p08qY-0001bi-Lq
 for submit <at> debbugs.gnu.org; Tue, 29 Nov 2022 17:12:59 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1p08qY-0007U6-G0
 for guix-patches@HIDDEN; Tue, 29 Nov 2022 17:12:58 -0500
Received: from tobias.gr ([2a02:c205:2020:6054::1])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1p08qQ-0001KT-F9
 for guix-patches@HIDDEN; Tue, 29 Nov 2022 17:12:56 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=4ncLhUMcNKUip
 w7IhdZzOFAHEFwScanDSC5paQZHGoo=;
 h=in-reply-to:date:subject:cc:to:
 from:references; d=tobias.gr; b=WFK5XawPNp+6dOK6T5vDcXVZ2Q9j7nByPAcKce
 piegDJO2xhji5DnLLKuvLn9pSB5EKEZI5zzP1fLnE9q+re5VzA59D1UWlwPiUyU8GPDA0d
 34Ev0xg7X3bXqHXXzg0g/4bQVB/1BVi3qEE2kl6shnF+n2mogGrVjHeZBnTCovElzAH4tS
 WmqUChb5aNzFx2UR04Qrjn8MCKTJrs66FUl30tvWFBKEKw9AWaF5bI2mcCqQ4cf11IuQQw
 zeqCyLyzVqqMKGqkj5rtRpzPZ+m/nU7uCtmfNcusf3UZWXQ+i6NH9GdS75plO9qMNmifcB
 1rVkMGuv5meN8FzQ9v8rGYYA==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 4f9e361b
 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); 
 Tue, 29 Nov 2022 22:12:45 +0000 (UTC)
References: <20221129215541.26224-1-eu@HIDDEN>
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: EuAndreh <eu@HIDDEN>
Subject: Re: [bug#59701] [PATCH] gnu: mailutils: Inform correct path of
 sendmail.
Date: Tue, 29 Nov 2022 23:11:03 +0100
In-reply-to: <20221129215541.26224-1-eu@HIDDEN>
BIMI-Selector: v=BIMI1; s=default;
Message-ID: <87o7spe7do.fsf@nckx>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@HIDDEN;
 helo=tobias.gr
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
Cc: 59701 <at> debbugs.gnu.org, guix-patches@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

--=-=-=
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

EuAndreh via Guix-patches via =E5=86=99=E9=81=93=EF=BC=9A
> * gnu/packages/mail.scm (mailutils)[arguments]: Add=20
> -DPATH_SENDMAIL
>   to CFLAGS pointing to /run/setuid-programs.

Thanks!

Did you try making mailutils simply respect $PATH instead?  Do you=20
know why it doesn't?  Can't?

Hard-coding a distribution-specific location is something we often=20
bemoan other packages doing=E2=80=A6

Kind regards,

T G-R

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCY4aEJA0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW158WAA/iiEV8BEXJJw6p6cWLa4WOuXvFMWsiWVIBg88DJi
9TLkAQCozXoN220qPbeNEXD/sC+4gavFIcttx89sH8vXTpkPCA==
=v9na
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.

Message received at 59701 <at> debbugs.gnu.org:


Received: (at 59701) by debbugs.gnu.org; 29 Nov 2022 21:57:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 29 16:57:29 2022
Received: from localhost ([127.0.0.1]:56667 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p08bZ-0001QQ-1I
	for submit <at> debbugs.gnu.org; Tue, 29 Nov 2022 16:57:29 -0500
Received: from euandre.org ([216.238.68.100]:33450)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eu@HIDDEN>) id 1p08bW-0001QK-2P
 for 59701 <at> debbugs.gnu.org; Tue, 29 Nov 2022 16:57:27 -0500
Received: from euandre.org (localhost [127.0.0.1])
 by euandre.org (Postfix) with ESMTP id 30393379393;
 Tue, 29 Nov 2022 18:57:25 -0300 (-03)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=euandre.org; h=
 from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding; s=dkimproxy; bh=wnVvDtEGXHo4RKyYd7Hd
 97FZqXQ=; b=Xo4vlRadYigHD60I8msUO819USuo6RjwOwjvybbPESSjiegRuUkd
 dXEFmE/gilstavbSwf2PqfJbBsIzCOzByqm/xLPYhTAZdUMksylws/AkOp50utz7
 YdaI4f2dZPONiCO3fY345jYQ2qO1uEOqS8RO7nCSXDPDuWx9Cq640LPM28ZSgEVz
 iDjk4B/XxZjkde+B9UysjgncBkGG6D/MxqoW49f2ym57jDt66vPgXZP/ojK/n7Zs
 vjCrc2tcZJovN0T6MPkKAvhBGngfDNhWeq+zP6XTERJLx5LP+zMKNjipbHKb3b9b
 bTk6nkIA1uxDkxAGNBfsABgC9dNsMjfcoA==
From: EuAndreh <eu@HIDDEN>
To: 59701 <at> debbugs.gnu.org
Subject: [PATCH v2] gnu: mailutils: Inform correct path of sendmail.
Date: Tue, 29 Nov 2022 18:57:21 -0300
Message-Id: <20221129215721.14591-1-eu@HIDDEN>
X-Mailer: git-send-email 2.38.1
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 59701
Cc: EuAndreh <eu@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/mail.scm (mailutils)[arguments]: Add -DPATH_SENDMAIL
  to CFLAGS pointing to /run/setuid-programs.
---
Oops, now with the correct path.

 gnu/packages/mail.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index cef5fe2916..754c9bc6de 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -347,6 +347,9 @@ (define-public mailutils
            #~(list "--sysconfdir=3D/etc"
                    "--disable-static"
=20
+                   ;; Specify path to sendmail setuid binary, which othe=
rwise
+                   ;; defaults to /usr/sbin/sendmail
+                   "CFLAGS=3D-DPATH_SENDMAIL=3D\\\"/run/setuid-programs/=
sendmail\\\""
                    ;; Add "/X.Y" to the installation directory.
                    (string-append "--with-guile-site-dir=3D"
                                   (assoc-ref %outputs "out")
--=20
2.38.1





Information forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Nov 2022 21:56:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 29 16:56:00 2022
Received: from localhost ([127.0.0.1]:56657 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1p08a8-0001Nz-I3
	for submit <at> debbugs.gnu.org; Tue, 29 Nov 2022 16:56:00 -0500
Received: from lists.gnu.org ([209.51.188.17]:50254)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eu@HIDDEN>) id 1p08a4-0001Nt-KN
 for submit <at> debbugs.gnu.org; Tue, 29 Nov 2022 16:55:58 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eu@HIDDEN>) id 1p08a4-000278-3P
 for guix-patches@HIDDEN; Tue, 29 Nov 2022 16:55:56 -0500
Received: from euandre.org ([2001:19f0:b400:1f0c:5400:4ff:fe35:8c89])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eu@HIDDEN>) id 1p08a2-0006mK-Hp
 for guix-patches@HIDDEN; Tue, 29 Nov 2022 16:55:55 -0500
Received: from euandre.org (localhost [127.0.0.1])
 by euandre.org (Postfix) with ESMTP id 19E86379379;
 Tue, 29 Nov 2022 18:55:49 -0300 (-03)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=euandre.org; h=
 from:to:cc:subject:date:message-id:mime-version
 :content-transfer-encoding; s=dkimproxy; bh=G3krtIoCAPgXy+CvsEvk
 kov8krk=; b=uTHsfYT1HztNLahkJWBPb/TYb490JIGNf7oVX4QHEzvOuYKH8B+I
 Q0pfDsHWGM4FNTikuRmMDaqv2UG+bKrCVKqeCH3YKqtylYsj0wHF1l1SLCOI9B/B
 x0ESGGCi1hMELutQS188quisQnw2aiC28ir/qVSXIOGVXumYG5Sj0OQsRtyn4nSJ
 AFHUQ71eC+h3qk+eUh0N8RGtD9LU1aM+WpV65A3ag7VjVPGaYxbBPX2BDUiCFbPa
 vF9L2mmNwLBk+tPxr/OTiR+Lyo1YpOiyLVkAPSuoGj//7kFk2/dFr1Ig4bPKHf89
 jyX25x7cCAjE48nBfPwsvfLG1CGZuMsnPw==
From: EuAndreh <eu@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: mailutils: Inform correct path of sendmail.
Date: Tue, 29 Nov 2022 18:55:41 -0300
Message-Id: <20221129215541.26224-1-eu@HIDDEN>
X-Mailer: git-send-email 2.38.1
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2001:19f0:b400:1f0c:5400:4ff:fe35:8c89;
 envelope-from=eu@HIDDEN; helo=euandre.org
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
Cc: EuAndreh <eu@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

* gnu/packages/mail.scm (mailutils)[arguments]: Add -DPATH_SENDMAIL
  to CFLAGS pointing to /run/setuid-programs.
---

Notes:
    The current compilation options of GNU Mailutils don't specify a valu=
e
    for the "PATH_SENDMAIL" C macro.  The build system of the package loo=
ks
    for a definition of this variable in the "paths.h" header file from t=
he
    glibc package, and falls back to what is defined as the default in it=
s
    "paths" file, /usr/sbin/sendmail.
   =20
    As this binary doesn't exist, "mail" fails to execute:
   =20
      $ cat mail.txt
      From: root
      To: root
      Subject: This fails
   =20
      The body
      $ mail -t < mail.txt
      mail: Cannot open mailer: No such file or directory
      mail: cannot send message: No such file or directory
      $ echo $?
      1
   =20
    I've confirmed this by looking at the file called "paths" in the sour=
ce
    code of mailutils, and at the strace output of calling mailutils.  I
    do have a working sendmail binary under /run/setuid-programs, and it
    now it is correctly called by the "mail" command, from mailutils.
   =20
    Given that this was the default, probably most Guix users do have a
    /root/dead.letter, with emails from the system, mainly rottlog
    notifications of log rotations, as it does use GNU Mailutils directly=
 in
    its /etc/rottlog/rc configuration.

 gnu/packages/mail.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index cef5fe2916..2c42cdfaca 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -347,6 +347,9 @@ (define-public mailutils
            #~(list "--sysconfdir=3D/etc"
                    "--disable-static"
=20
+                   ;; Specify path to sendmail setuid binary, which othe=
rwise
+                   ;; defaults to /usr/sbin/sendmail
+                   "CFLAGS=3D-DPATH_SENDMAIL=3D\\\"/run/setuid-programs\=
\\""
                    ;; Add "/X.Y" to the installation directory.
                    (string-append "--with-guile-site-dir=3D"
                                   (assoc-ref %outputs "out")
--=20
2.38.1





Acknowledgement sent to EuAndreh <eu@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#59701; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 14 Dec 2022 11:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.