[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [nmh-workers] 'dist' in "1 line noninteractive script"
From: |
nmh |
Subject: |
Re: [nmh-workers] 'dist' in "1 line noninteractive script" |
Date: |
Sat, 20 Jul 2019 07:54:03 -0500 |
On Fri 7/19/19 7:45 -0500 address@hidden wrote:
>Want to use dist in cron or 'at' to
>programatically resend a msg in my sent folder (in below example msg 2022).
>I do not want this script to be interactive.
>
>Consider
dist -from address@hidden -to address@hidden -cc address@hidden -fcc resent
+sent 2022
> I'm not understanding what the dist switches: -from, -to, -cc, and -fcc
> are used for.
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.
Now w/above distcomps, the -from, -to, -cc, and -fcc switches work.
Consider
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?
>My goal is a to make a wrapper script that calls 'dist' so I can automate the
>resending of a msg along with the proper "Resent-*" headers non interactively.
>I would then use 'at' to schedule a couple of 'resends'.
--
thanks,
Tom
- [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 <=
- Re: [nmh-workers] 'dist' in "1 line noninteractive script", Ralph Corderoy, 2019/07/21
- 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