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

OpenSubmitted by Christopher Baines.
Details
2 participants
  • Christopher Baines
  • Ricardo Wurmus
Owner
unassigned
Severity
normal
C
C
Christopher Baines wrote on 15 Sep 2017 20:33
(address . bug-guix@gnu.org)
20170915193348.5491e73f@cbaines.net
When using caff from the signing-tools pacakge, it looks for sendmailin the wrong places [1]. It would be useful to find a way to make itwork when installed.
I have found a workaround, which is to specify PERL_MAILERS assendmail:$(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-----
iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlm8HQxfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNFODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE9XdUfQ//XmituD5XHb+cz309SnhKb4UXyxvRRoHr/rXA5kp0B5aiYjn7m0vF62rfr64CMd16s58NM1uIxpXOtz0i9h8UNutq3uMK65YbQ6hmzJE4/lD8vogymJ+QpdfjWBnbeppEX/fysTx+eoxTbY7iUedMEipxMUdauFXkbub5+miiLGSCp2/DYwW7zQ/IiG6Dfv8tVFsLO+Te5FPsVAv+iPPz8xrrdBcw1XuUdnnlxpMhpRZp0yFdeL7mVxw7WaqWBQEHuClQvjw2W6635OGLX+nSpiuEmU4USkCqm4UMdxaJiUTkYqHSs/LS9+iVCNKSBWLe24R/ujnp1widbTGki9zqa/pw3nPoLpbbznnC5yhofitbYyq76Mt/YqpCj3ixgU2K91OARoP9Inh9xmUv0o60VBw4qW5geKCi9finmiNN6lCW/hbM9rSpOZEVNfNjLq3a00WoDxbP9arTkcnd2FBZS1Tkgc8nA981s0OOkPugAvjEwBe+jRcvS36IVKmXmeZX4gD4P5LYuj5nVcEHWr7WuzWKsFjTUh7YwfFmO+bpDi4fzak9XK/0ZO4vH4oOcpm8SBbTEb5ymsB1nBX2msbBmnu3Ctk7BulyFg5JTBtYqqntRRcEQrzBseKEPfM800+HDOTbSJeSF+XalgiWFF2KpnLAJjfjUuxUPBwDZWYGD0Y==F3Wx-----END PGP SIGNATURE-----

R
R
Ricardo Wurmus wrote on 9 Oct 2017 23: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 mailerbe 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 ACAChttps://elephly.net
C
C
Christopher Baines wrote on 10 Oct 2017 09: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 +0200Ricardo 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 withoutspecifying this environment variable.
I think approaches other than sendmail are supported [1], but I'munsure if that includes msmtp.
1: https://metacpan.org/pod/Mail::Mailer#DESCRIPTION
This is probably more about the Mail::Mailer perl package in theperl-mailtools package, than caff, that just uses Mail::Mailer.
I spent a bit of time looking at the Mail::Mailer source code whentrying to get caff working, but unfortunately, bits of it are still abit cryptic to me.
-----BEGIN PGP SIGNATURE-----
iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAlncd1RfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNFODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE9Xd7wA//XJ+PA2T1wgsSXe3FpQgF/Qb3YxZpaQLYkkEocnPf0TlNfAJBRfQ/OQTwd0k5PGue3fNCLtKWnB0MnQhRkzFmHHEilyt9phhZhCFuMVsVxOa84j58su3s7Ge+8Abkl55aVxJL6uWnp12M2S8tCNOdkD1H3Xbf9AbmuQRmBeH4BtqAL2pfT3ZDK3ARgQQ778J+yGp+l8CDfZVdWE88ta7eGN8lRh2KveINfxccb4HsLq1FowzTi9IhoF/jW3q+M+CyyCJ4x/wWa2uxMZHNPdj4EmjDUL33qOLSu8LYvovV4L9K7rXR6eVC/3nAUBMuzw+u8J7N6oE3GPZsgq790jmZL67Ez8BHrLuN3DWVkzutDYFu67gjyzbhHCaYV10MxwMSeS8gNjRq799hestRBwGaK1Wyq2bS5QodLjL6l9cmhbm4ce0pFZHSkw8FkNVuDlTbX27wBFVqXgdkKOLB1DxMB9jcjOhDjQwXtIFg1y0F5IGoFZgvjlpBYMjOqrWO10JP6kbcG66xHLjVr6TYOuEhDl43rSR5Gt+AVMsM+qCGDz5je0uWOjZyM/PU6skS/zthnzUuCtiE8sFu2XUuE5B5vvmZlZHbWuW4J2PHn0EQCysuYREfEcMwZHC0eDDEdnjRlInauCiA5cYmqNg3d0dp2uINvxZsLZi3CbJoG4+kvSc==Vt1r-----END PGP SIGNATURE-----

?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send email to 28470@debbugs.gnu.org