nmh-workers
[Top][All Lists]
Advanced

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

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


From: David Levine
Subject: Re: [nmh-workers] 'dist' in "1 line noninteractive script"
Date: Mon, 22 Jul 2019 19:29:01 -0400

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 address@hidden -to address@hidden -cc address@hidden -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



reply via email to

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