[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
- [Nmh-workers] proposed patch for shell metacharacter failure in nmh-1.7, Steven Winikoff, 2018/01/13
- Re: [Nmh-workers] proposed patch for shell metacharacter failure in nmh-1.7,
David Levine <=
- Re: [Nmh-workers] proposed patch for shell metacharacter failure in nmh-1.7, Steven Winikoff, 2018/01/13
- Re: [Nmh-workers] proposed patch for shell metacharacter failure in nmh-1.7, David Levine, 2018/01/13
- Re: [Nmh-workers] proposed patch for shell metacharacter failure in nmh-1.7, Steven Winikoff, 2018/01/13
- Re: [Nmh-workers] proposed patch for shell metacharacter failure in nmh-1.7, David Levine, 2018/01/14
- Re: [Nmh-workers] proposed patch for shell metacharacter failure in nmh-1.7, Steven Winikoff, 2018/01/14
- Re: [Nmh-workers] rcvdist with non-default port, David Levine, 2018/01/14
- Re: [Nmh-workers] rcvdist with non-default port, Steven Winikoff, 2018/01/14
- Re: [Nmh-workers] rcvdist with non-default port, David Levine, 2018/01/14
- Re: [Nmh-workers] rcvdist with non-default port, Steven Winikoff, 2018/01/14
- Re: [Nmh-workers] rcvdist with non-default port, David Levine, 2018/01/14