nmh-workers
[Top] [All Lists]

Re: [nmh-workers] 'dist' in "1 line noninteractive script"

2019-07-23 13:59:10
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
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>