nmh-workers
[Top][All Lists]
Advanced

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

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


From: David Levine
Subject: Re: [Nmh-workers] proposed patch for shell metacharacter failure in nmh-1.7
Date: Sat, 13 Jan 2018 17:35:15 -0500

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



reply via email to

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