nmh-workers
[Top] [All Lists]

Re: [nmh-workers] 'dist' in "1 line noninteractive script"

2019-07-22 18:29:13
Ralph writes:

Hi Tom,

http://git.savannah.nongnu.org/cgit/nmh.git/tree/etc/distcomps is the
stock one for comparison.

Just to note that it works for me.


    echo send |
    dist -noedit \
        -from thud@zaz.com -to baz@nim.org -cc frog@thud.com -fcc resent \
        +sent 2022

Is there a prefered way to the above approach for automating the send?

Another way is

    echo y | dist -whatnowproc send -to foo

Or, per the description of mhdraft in mh-profile(1):

    $ cat `mhparam path`/auto_send
    [ "$mhdraft" ] && send "$mhdraft"

    $ dist [...] -whatnowproc `mhparam path`/auto_send

With the -whatnowproc switch, the -noedit isn't necessary.

David

-- 
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>