bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Bjørn Forsman
Subject: [bug-mailutils] [Feature request] Find "sendmail" in $PATH at runtime
Date: Sun, 8 Oct 2017 13:12:48 +0200

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]