[Feature request] Find "sendmail" in $PATH at runtime

Bjørn Forsman <[email protected]>
Newsgroups gmane.comp.gnu.mailutils.bugs
Message-ID <CAEYzJUEuW=UHR5GO-KVA42iYaUqGQem2=oTGHg2VJgXNvCia1Q@mail.gmail.com>
Hi mailutils dev(s),

For packaging mailutils in Nix/NixOS I/we would like to have the
"mail" program lookup the path to "sendmail" at runtime via the $PATH
environment variable. See our upstream issue:
https://github.com/NixOS/nixpkgs/issues/21008.

How to do that? I've tried to figure it out myself but I'm getting
stuck in all the layers :-)

What I've done so far is passing "--with-path-sendmail=sendmail" so
that the (compile only time?) logic in ./paths is bypassed. But now
"mail" aborts at runtime with access("sendmail", X_OK) = -1 ENOENT,
and I don't see the appropriate place to put the path lookup so that
this check passes.

Best regards,
Bjørn Forsman

_______________________________________________
Bug-mailutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-mailutils
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.