[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: |
Tue, 23 Jul 2019 13:58:58 -0500 |
Hi David:
On Mon 7/22/19 19:29 -0400 David Levine wrote:
[...]
>per the description of mhdraft in mh-profile(1):
>
> $ cat `mhparam path`/auto_send
> [ "$mhdraft" ] && send "$mhdraft"
>
> $ dist [...] -whatnowproc `mhparam path`/auto_send
>
>With the -whatnowproc switch, the -noedit isn't necessary.
Thanks David. I tried your auto_send 1 line script and it worked
with dist as you said.
Your tip and a dump of env seen by .../auto_send
suggested this approach to mimic dist:
mhannotate=Resent mhmessages=2022 mhatfile=1 mhfolder=~/Mail/sent mhuse=0
mhaltmsg=~/Mail/sent/2022 mhdraft=~/Mail/drafts/1007 mhinplace=1 mhdist=1 send
-verbose ~/Mail/drafts/1007
---
Changing topic a bit to "'dist' with msg as pathname ( not ending in an integer
)"
Although above 'send' worked, it
would be nice to specify ~/Mail/sent/2022 as say ~/Mail/sent/bar, and
~/Mail/drafts/1007 as ~/Mail/drafts/foo so they won't be accidently renumbered
or deleted before my 'at' job, that may run the send perhaps a week later. I
would
probably hard link ~/Mail/sent/2022 to ~/Mail/sent/bar. ( I do not mind
manually making ~/Mail/drafts/foo. )
--- back to main topic
So, I think you and Ralph have answered my question - thanks!
--
thanks,
Tom
--
Below experiment, works except that ~/Mail/sent/bar is not annotated (for
example - no
'Prev-Resent' headers):
mhannotate=Resent mhaltmsg=~/Mail/sent/bar mhdist=1 send
~/Mail/drafts/foo
- [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 <=
- 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