On Fri 7/19/19 7:45 -0500 [email protected] 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 [email protected] -to [email protected] -cc [email protected] -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 [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?
>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
https://lists.nongnu.org/mailman/listinfo/nmh-workers