nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] customizing templates

2016-09-15 09:04:49
I'm at the stage where I'd like to customise the templates a little.

So, these are written in a kind of strange little language.  It's documented
relatively completely in mh-format(5).  As of 1.6 we include fmttest(1)
which you can use to help debug your format script.

Thank you. I have indeed been reading both the man pages and the rand-mh book 
on fs.net
Both are very helpful.

How can I change that to: "for From: use the address passed
as the -from switch, or use a(_at_)b(_dot_)com

Local-Mailbox: My Name <a(_at_)b(_dot_)com>

Genius!

%(void(localmbox))%(void(width))%(putaddr From: )

How can I change that to: "for From: use the "Delivered-to:"
header or a(_at_)b(_dot_)com

Well, the manual would explain that, but it's pretty dense.  Here's
something that should work:

%<{delivered-to}%|%(void(localmbox))%>%(void(width))%(putaddr From: )

I got so close to that, but always with errors. I'll try fmttest next time.

The mhl man page confuses me. It suggests that mhl looks in
"user's nmh directory" for mhl.format. Is that defined by Path: in .mh_profile?

How do I supress all headers in mhl except those i specifically list?
I see that mhl(1) tells me to list those I want to ignore, then I got confused
by three paragraphs explaining it.

thanks for all your help.

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

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