[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:09:38 -0500 |
Hi Ken:
On Tue 7/23/19 21:44 -0400 Ken Hornstein wrote:
>> mhannotate=Resent mhaltmsg=~/Mail/sent/bar mhdist=1 send ~/Mail/drafts/foo
>
>It wouldn't surprise me that the problem is that ~ in mhaltmsg. Is that
>actually being expanded? If you run send with -debug, do you maybe
>see a message saying "$mhaltmsg mismatch"?
$ ( set -x ; x=~ true )
+ x=/a/rodmant
+ true
So bash expands ~ before send sees it.
>How annotations work is a bit magical. send sees that the 'mhannotate'
>variable is set, opens a file descriptor and passes that descriptor down
>to post(8) using the -idanno flag. Post then writes the address information
>to the anno descriptor (which is a tmp file which has been unlinked)
>and then send(1) reads that file and uses it to construct the annotation.
>But there's a check in sendsbr.c:anno() to make sure the stat() information
>of the filename in mhaltmsg matches what is being passed in as the
>original filename; that will fail silently without -debug if there
>is a mismatch.
Interesting/thanks.
I can live without the -annotate working -- it works fine, but not with
David's undocumented -file MSG_PATH.
--
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 <=
- 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