nmh-workers
[Top] [All Lists]

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

2018-01-14 13:52:53
Steven wrote:

I'm not sure there's a good way to fix this.  Maybe this?

  'SEAO - Résultats d'"'"'ouverture (002).pdf'

I believe that's the right thing to do, and the only real alternative
to removing the ' characters altogether.

If you want to try the attached patch to mhshowsbr.c, it works
for me with:

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

It quotes the name containing a single quote as shown above.

As far as whether this is the right approach, I'd like to hear from
others.

David

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

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