nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] mh-format multiply function

2015-01-09 13:12:33
Ken Hornstein <kenh@pobox.com> writes:
Is it really true, that mh-format does not have a multiply function?

Huh ... it does not!  I guess one of those old geezers did not think it
was necessary.  Maybe it would be worth it to implement that at some point.

Rather than multiply, may I susggest another funncton, which would give
mutliply and much more.

                %(exec procedure_name)

It would exec procedure_name and return its stdout. It would not redirect
stderr. For each component, comp, of the messages, it would define an
environment variable, NMH_FORMAT_comp, whose value was the content of that
component.

A non-zero exit status would be an error.

Such a function would let the ordinary bloke define her own format without
having to learn the intricacies of mh-format. She could use her favorite
scripting language, be it python, bash, csh, perl, Java, or even C or C++.

And it would let the non-orginary bloke do things that mh-format
can't do.

    Norman Shapiro

_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

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