[comp.mail.mh] Confused over mh-format files

dwight@venera.isi.edu (Dwight Fromm) (03/10/88)

Ok, so like I have become confused trying to decifer the mhl format 
file "replcomps".  So you don't have to dig for it in your mh lib dir,
here's what I'm talking about:

    %(lit)%(formataddr %<{reply-to}%|%<{from}%|%{sender}%>%>)\
    %<(nonnull)%(void(width))%(putaddr To: )\n%>\
    %(lit)%(formataddr{to})%(formataddr{cc})%(formataddr(me))\
    %<(nonnull)%(void(width))%(putaddr cc: )\n%>\
    %<{fcc}Fcc: %{fcc}\n%>\
    %<{subject}Subject: Re: %{subject}\n%>\
    %<{date}In-reply-to: Your message of \
    %<(nodate{date})%{date}%|%(tws{date})%>.%<{message-id}
		 %{message-id}%>\n%>\
    --------

I believe I can grok the *undocumented* escapes: 
	%(lit)		- print (evaluation of) arg as a literal string
	%(nonnull)	- true if arg is nonnull
	%(void)		- seems to be some kind of NOP evaluation 
	%(putaddr)	- print addr string formed from formataddr's
	%(width)	- strlen of "str" register???

PLEASE tell me if I'm making wrong guesses here.

Anyway, all I wanted to do was add these couple of lines above the 
Fcc line:
	%(formataddr(me))\
	%<(nonnull)%(void(width))%(putaddr Reply-To: )\n%>\

But I *never* got any "Reply-To" field in my msg headers.  So, after
lots of fiddling around, I discover that if I remove the Cc: lines, it
works great!  Furthermore, if I move the Reply-To: lines above the Cc:
lines, then the Cc: lines cease to work!  With more fiddling around it
*appears* that you get to use "formataddr(me)" *once* and then it doesn't
evaluate any longer.  What gives?

	I've read the man pages (but they fail to mention most of the 
escapes used here) and looked at the code in fmtcompile.c (what a losing 
battle that is) and have gotten no where.  Could some super MH wizard
PLEASE give me the scoop on how they escapes are intended to be used?
I sure would appreciate it!

Thanks in advance for any help!
Dwight W. Fromm

P.S.  Here's the mh state of affairs here at ISI:

version: MH 6.5 #50[UCI] (venera.isi.edu) of Thu Jan 15 20:24:10 PST 1987
options: [BSD42] [BSD43] [ISI] [MHRC] [ATZ] [MHE] [NETWORK] [BIND]
		 [RPATHS] [SBACKUP='"#"'] [SENDMTS] [SMTP] [POP]