caff in the signing-party package can't find sendmail on GuixSD

  • Open
  • quality assurance status badge
Details
2 participants
  • Christopher Baines
  • Ricardo Wurmus
Owner
unassigned
Submitted by
Christopher Baines
Severity
normal

Debbugs page

C
C
Christopher Baines wrote on 15 Sep 2017 11:33
(address . bug-guix@gnu.org)
20170915193348.5491e73f@cbaines.net
When using caff from the signing-tools pacakge, it looks for sendmail
in the wrong places [1]. It would be useful to find a way to make it
work when installed.

I have found a workaround, which is to specify PERL_MAILERS as
sendmail:$(type -p sendmail), e.g.:

PERL_MAILERS=sendmail:$(type -p sendmail) caff ...

1: /usr/lib/sendmail;/usr/sbin/sendmail;/usr/ucblib/sendmail
-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlm8HQxfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE
9XdUfQ//XmituD5XHb+cz309SnhKb4UXyxvRRoHr/rXA5kp0B5aiYjn7m0vF62rf
r64CMd16s58NM1uIxpXOtz0i9h8UNutq3uMK65YbQ6hmzJE4/lD8vogymJ+Qpdfj
WBnbeppEX/fysTx+eoxTbY7iUedMEipxMUdauFXkbub5+miiLGSCp2/DYwW7zQ/I
iG6Dfv8tVFsLO+Te5FPsVAv+iPPz8xrrdBcw1XuUdnnlxpMhpRZp0yFdeL7mVxw7
WaqWBQEHuClQvjw2W6635OGLX+nSpiuEmU4USkCqm4UMdxaJiUTkYqHSs/LS9+iV
CNKSBWLe24R/ujnp1widbTGki9zqa/pw3nPoLpbbznnC5yhofitbYyq76Mt/YqpC
j3ixgU2K91OARoP9Inh9xmUv0o60VBw4qW5geKCi9finmiNN6lCW/hbM9rSpOZEV
NfNjLq3a00WoDxbP9arTkcnd2FBZS1Tkgc8nA981s0OOkPugAvjEwBe+jRcvS36I
VKmXmeZX4gD4P5LYuj5nVcEHWr7WuzWKsFjTUh7YwfFmO+bpDi4fzak9XK/0ZO4v
H4oOcpm8SBbTEb5ymsB1nBX2msbBmnu3Ctk7BulyFg5JTBtYqqntRRcEQrzBseKE
PfM800+HDOTbSJeSF+XalgiWFF2KpnLAJjfjUuxUPBwDZWYGD0Y=
=F3Wx
-----END PGP SIGNATURE-----


R
R
Ricardo Wurmus wrote on 9 Oct 2017 14:37
(name . Christopher Baines)(address . mail@cbaines.net)(address . 28470@debbugs.gnu.org)
87infom28i.fsf@elephly.net
Hi Christopher,

Toggle quote (11 lines)
> When using caff from the signing-tools pacakge, it looks for sendmail
> in the wrong places [1]. It would be useful to find a way to make it
> work when installed.
>
> I have found a workaround, which is to specify PERL_MAILERS as
> sendmail:$(type -p sendmail), e.g.:
>
> PERL_MAILERS=sendmail:$(type -p sendmail) caff ...
>
> 1: /usr/lib/sendmail;/usr/sbin/sendmail;/usr/ucblib/sendmail

What is the expected behaviour here? Does it *only* work with sendmail?
Or would any mailer (like msmtp) work? Should the user’s default mailer
be used or should we embed a reference to a specific mailer?

--
Ricardo, an msmtp user

GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
C
C
Christopher Baines wrote on 10 Oct 2017 00:31
(name . Ricardo Wurmus)(address . rekado@elephly.net)(address . 28470@debbugs.gnu.org)
20171010083132.62fb5c45@cbaines.net
On Mon, 09 Oct 2017 23:37:49 +0200
Ricardo Wurmus <rekado@elephly.net> wrote:

Toggle quote (18 lines)
> Hi Christopher,
>
> > When using caff from the signing-tools pacakge, it looks for
> > sendmail in the wrong places [1]. It would be useful to find a way
> > to make it work when installed.
> >
> > I have found a workaround, which is to specify PERL_MAILERS as
> > sendmail:$(type -p sendmail), e.g.:
> >
> > PERL_MAILERS=sendmail:$(type -p sendmail) caff ...
> >
> > 1: /usr/lib/sendmail;/usr/sbin/sendmail;/usr/ucblib/sendmail
>
> What is the expected behaviour here? Does it *only* work with
> sendmail? Or would any mailer (like msmtp) work? Should the user’s
> default mailer be used or should we embed a reference to a specific
> mailer?

I don't have any expectations, but ideally, it would work without
specifying this environment variable.

I think approaches other than sendmail are supported [1], but I'm
unsure if that includes msmtp.


This is probably more about the Mail::Mailer perl package in the
perl-mailtools package, than caff, that just uses Mail::Mailer.

I spent a bit of time looking at the Mail::Mailer source code when
trying to get caff working, but unfortunately, bits of it are still a
bit cryptic to me.
-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlncd1RfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE
9Xd7wA//XJ+PA2T1wgsSXe3FpQgF/Qb3YxZpaQLYkkEocnPf0TlNfAJBRfQ/OQTw
d0k5PGue3fNCLtKWnB0MnQhRkzFmHHEilyt9phhZhCFuMVsVxOa84j58su3s7Ge+
8Abkl55aVxJL6uWnp12M2S8tCNOdkD1H3Xbf9AbmuQRmBeH4BtqAL2pfT3ZDK3AR
gQQ778J+yGp+l8CDfZVdWE88ta7eGN8lRh2KveINfxccb4HsLq1FowzTi9IhoF/j
W3q+M+CyyCJ4x/wWa2uxMZHNPdj4EmjDUL33qOLSu8LYvovV4L9K7rXR6eVC/3nA
UBMuzw+u8J7N6oE3GPZsgq790jmZL67Ez8BHrLuN3DWVkzutDYFu67gjyzbhHCaY
V10MxwMSeS8gNjRq799hestRBwGaK1Wyq2bS5QodLjL6l9cmhbm4ce0pFZHSkw8F
kNVuDlTbX27wBFVqXgdkKOLB1DxMB9jcjOhDjQwXtIFg1y0F5IGoFZgvjlpBYMjO
qrWO10JP6kbcG66xHLjVr6TYOuEhDl43rSR5Gt+AVMsM+qCGDz5je0uWOjZyM/PU
6skS/zthnzUuCtiE8sFu2XUuE5B5vvmZlZHbWuW4J2PHn0EQCysuYREfEcMwZHC0
eDDEdnjRlInauCiA5cYmqNg3d0dp2uINvxZsLZi3CbJoG4+kvSc=
=Vt1r
-----END PGP SIGNATURE-----


?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 28470@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 28470
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch