From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:40342) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdwXx-0000IC-3X for guix-patches@gnu.org; Thu, 20 Jun 2019 08:52:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdwWt-0002XN-7S for guix-patches@gnu.org; Thu, 20 Jun 2019 08:51:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34488) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hdwWs-0002Wu-47 for guix-patches@gnu.org; Thu, 20 Jun 2019 08:51:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hdwWr-0006pv-W6 for guix-patches@gnu.org; Thu, 20 Jun 2019 08:51:02 -0400 Subject: [bug#36239] [PATCH] opensmtpd-service-type to extend pam Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87sgsaxn6t.fsf@walletsworth.com> <87tvcl1f76.fsf@gnu.org> <87tvclqdsd.fsf@walletsworth.com> <87k1dgsjs9.fsf@nckx> <87imt0sj82.fsf@nckx> <87wohgjwuz.fsf@gnu.org> <87r27o30xi.fsf@nckx> Date: Thu, 20 Jun 2019 14:49:51 +0200 In-Reply-To: <87r27o30xi.fsf@nckx> (Tobias Geerinckx-Rice's message of "Thu, 20 Jun 2019 14:18:27 +0200") Message-ID: <87y31wifps.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Tobias Geerinckx-Rice Cc: 36239@debbugs.gnu.org Tobias Geerinckx-Rice skribis: > Ludovic Court=C3=A8s wrote: >> I think I=E2=80=99d use it here; that=E2=80=99s consistent with the rest= of the file >> actually, no? To me everything looks OK as it is. > > Then I'm not sure I grok % (which is likely as I've never read a > description, only induced its use). > > What's the difference between: > > (define (%dovecot-activation config) =E2=80=A6 > > and > > (define opensmtpd-activation =E2=80=A6 > (define exim-activation =E2=80=A6 > > ? I thought it had something to do with being exports/globals but > here (%opensmtpd-accounts, etc.) it is used simply to say =E2=80=98this i= s a > list=E2=80=99. It=E2=80=99s a long story. :-) Initially in Guile the =E2=80=98%=E2=80=99 prefix was used for =E2=80=9Csys= tem=E2=80=9D bindings, thing you don=E2=80=99t normally use as a normal user. Then I think I started us= ing it for things that are meant to be =E2=80=9Cinternal=E2=80=9D or variables = meant to be read-only (not procedures). In Guix we sort of follow that but somewhat extend the meaning. In the example above, I=E2=80=99d rather write =E2=80=98dovecot-activation= =E2=80=99 (without prefix, because it=E2=80=99s a procedure), but I=E2=80=99d probably write =E2=80=98%exim-activation=E2=80=99, depending on the phase of the moon. HTH! Ludo=E2=80=99.