nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] mhmail


From: norm
Subject: Re: [Nmh-workers] mhmail
Date: Wed, 13 Jun 2012 05:59:15 -0700

David Levine <address@hidden> writes:
>Norm wrote:
>
>> Maybe mhmail needs a '-server servername' option and perhaps
>> some other send options as well.
>
>Perhaps, though is that necessary?  It seems that mhmail was
>intended to be lean.  The man page recommends using comp and
>send for interactive use.  For scripts, a different mts.conf
>could be used by setting MHMTSCONF, e.g.,
>
>$ cat /tmp/mts.conf
>servers: localhost
>
>$ MHMTSCONF=/tmp/mts.conf mhmail levine \
>-from address@hidden -subject test -body hello

Ah! I did not know about MHMTSCONe Thank you.

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?

    Norman Shapiro



reply via email to

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