[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: |
Thu, 25 Jul 2019 11:38:53 -0500 |
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 <address@hidden>' -to
'"nym moob" <address@hidden>' -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] '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, 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 <=
- Re: [nmh-workers] 'dist' in "1 line noninteractive script", nmh, 2019/07/23