nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] proposed patch for shell metacharacter failure in nmh-1.7

2018-01-13 16:35:33
Steven wrote:

My .mh_profile has these relevant entries:

   mhshow-suffix-application/PDF: .pdf
   mhshow-show-application/pdf: %pmime_helper %F %s %{name}

Would you consider this?

    mhshow-show-application/pdf: %pmime_helper %F %s "%{name}"

That handles the embedded quote, which I think is why mhshow
doesn't quote the argument correctly.

And it would be nice if nmh could decode the filename, so your
mime_helper doesn't have to (if it does).  This works, though
hopefully there's a better way:

    mhshow-show-application/pdf: %pmime_helper %F %s `fmttest -raw -format 
'%(decode{text})' "%{name}"`

(If you want to save a line in your profile, that
mhshow-suffix-application/PDF line is in mhn.defaults.)

David

-- 
Nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers

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