Norm wrote:

> Suppose I want to do something like:
>
> mts=/usr/local/nmh/etc/mts.conf    #depends on installation
> sed < $mts >| /tmp/mts.conf -e '/^servers:/s/:.*/: localhost/'
> MHMTSCONF=/tmp/mts.conf mhmail norm -from norm -subject "$1"
>
> But replacing /usr/local/nmh/etc/mts.conf with the location of mts.conf.
> Is there some way a script can know the location of nmh's etc directory?

`mhparam etcdir`

To save a few cycles and file creation, I'd create a
mts-localhost.conf and in etcdir or my Path dir, `mhpath +`.

That also avoids the issue of /tmp running out of space.
Failure to open $MHMTSCONF is a silently ignored error/bug.

David

_______________________________________________
Nmh-workers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Reply via email to