Hi David:
On Tue 7/23/19 22:32 -0400 David Levine wrote:
Although above 'send' worked, it
would be nice to specify ~/Mail/sent/2022 as say ~/Mail/sent/bar,
send(1) doesn't care what the message file is named. After successfully
sending the message, it will rename the file to, in the case of your example
above, ~/Mail/sent/,bar (with the default comma backup prefix).
ok/thx
dist(1) supports a -file switch, but it isn't documented. We should consider
fixing that.
Great / I'm using "-file" now.
My 1 liner is back to to something like:
dist -whatnowproc ~/Mail/auto_send -from 'nym moob <zm@DoesItMatter.com>'
-to '"nym moob" <una@mumble.com>' -fcc resent -cc myaliasfoo -file
~/Mail/sent/bar
# Adding -annotate does nothing, but I think that is by design / I am
ok with that.
Where:
$ cat ~/Mail/auto_send
#!/bin/bash
if [ $mhdraft ] ; then
# echo mhdraft: $mhdraft mhaltmsg: $mhaltmsg
# cp "$mhdraft" /tmp/foo
# env
set -x
send -verbose "$mhdraft"
else
echo $0: OOPS: mhdraft not set >&2
exit 1
fi
$ head -8 /a/rodmant/Mail/distcomps
%; http://git.savannah.nongnu.org/cgit/nmh.git/tree/etc/distcomps
%;
%<{nmh-from}%|%(void(localmbox))%>%(void(width))%(putaddr Resent-From: )
%<{nmh-to}%(void(width))%(putaddr Resent-To: )%|Resent-To:%>
%<{nmh-cc}%(void(width))%(putaddr Resent-cc: )%|Resent-cc:%>
%<{fcc}%(void(width))%(putaddr Resent-fcc: )%|Resent-fcc:%>
Resent-Comments:
Resent-Comments:
--
Tom
--
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers