In nmh-1.0.3, the %a escape in an mhshow-show profile entry can yield
trailing garbage characters.

For example, consider this nmh-1.x profile entry:

  mhshow-show-application/octet-stream: %posdec %a '%F'

In nmh-0.27 and prior, the %a escape would have yielded a substitution
like so:

        name=name-of-file

...where name-of-file was the value of the "name" parameter, stripped
of quotes.

In nmh-1.0.3, the %a escape appears to yield a substitution that
includes the quote characters and some trailing garbage, e.g.:

        name="name-of-file"t/M

The addition of quote characters seems like a good idea since some
file names might contain spaces and other meta-characters.  However,
the trailing garbage seems like a bug.

(In case you're wondering about the above profile entry, "osdec" is a
Perl script that I wrote to hunt around for an appropriate handler
after applying various tools to figure out what the true MIME type
might be.  I've modified it to work around the above-described
problem.  How many times do you suppose that wheel has been
re-invented?)

Reply via email to