[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Ken Hornstein
Subject: Re: [Nmh-workers] mh-format multiply function
Date: Fri, 09 Jan 2015 14:32:51 -0500

>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

There ... are some concerns.

First, we'd have to be careful about component contents being parsed
properly, but that's mostly a problem for shell programs.  That's more of
a caveat emptor thing.  This is the same concern as Jerrad's one about
attack vectors; that's the thing that sticks out at me as the biggest
problem right away.

Secondly, when a mh-format program is run, it _cannot_ fail; literally,
there's no facility for it to fail.  When it gets compiled, yes, that
can fail.  But return an error code?  We don't really have a good way
in mh-format to deal with this.  I think it might be too much.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]