Hi Tom,

> After looking again at the 'dist' man page I have:
>
>     $ head -5 ~/Mail/distcomps 
>     Resent-To: %<{nmh-to}%{nmh-to}%>
>     Resent-From: %<{nmh-from}%{nmh-from}%>
>     Resent-cc: %<{nmh-cc}%{nmh-cc}%>
>     Resent-Fcc: %<{fcc}%{fcc}%>
>     Resent-Comments:
>
> Pls check above.

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

>     echo send |
>     dist -noedit \
>         -from [email protected] -to [email protected] -cc [email protected] -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

The icky ‘y’ is needed to answer send(1)'s ‘Use ".../42"?’ message
stating the draft prepared by dist(1) and communicated with the mhdraft
environment variable.  send doesn't ask if its -draft is given, but
-whatnowproc doesn't accept ‘send -draft’ as it tries to exec a program
called that single word.

None of this fits together too well.

-- 
Cheers, Ralph.

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

Reply via email to