[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [nmh-workers] 'dist' in "1 line noninteractive script"
From: |
Ralph Corderoy |
Subject: |
Re: [nmh-workers] 'dist' in "1 line noninteractive script" |
Date: |
Sun, 21 Jul 2019 12:56:59 +0100 |
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 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
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] 'dist' in "at" job or "1 line script"? [end-user ?], nmh, 2019/07/19
- Re: [nmh-workers] 'dist' in "1 line noninteractive script", nmh, 2019/07/20
- Re: [nmh-workers] 'dist' in "1 line noninteractive script",
Ralph Corderoy <=
- Re: [nmh-workers] 'dist' in "1 line noninteractive script", David Levine, 2019/07/22
- Re: [nmh-workers] 'dist' in "1 line noninteractive script", nmh, 2019/07/23
- Re: [nmh-workers] 'dist' in "1 line noninteractive script", Ken Hornstein, 2019/07/23
- Re: [nmh-workers] 'dist' in "1 line noninteractive script", nmh, 2019/07/25
- Re: [nmh-workers] 'dist' in "1 line noninteractive script", Valdis Klētnieks, 2019/07/25
- Re: [nmh-workers] 'dist' in "1 line noninteractive script", Ken Hornstein, 2019/07/25
- Re: [nmh-workers] 'dist' in "1 line noninteractive script", David Levine, 2019/07/23
- Re: [nmh-workers] 'dist' in "1 line noninteractive script", nmh, 2019/07/25
- Re: [nmh-workers] 'dist' in "1 line noninteractive script", nmh, 2019/07/23