"Sullivan N. Beck" <[EMAIL PROTECTED]> writes:
> > No, you're not missing anything. It's unfortunate that you can add suffixes
> > on mhn.defaults' mhstore directives:
> >
> > mhstore-store-application/PostScript: %m%P.ps
> > mhstore-store-text/richtext: %m%P.rt
> > mhstore-store-text: %m%P.txt
> > mhstore-store-video/mpeg: %m%P.mpg
> >
> > but not on the mhshow directives. When I was adding a check for lynx in
> > mhn.defaults.sh recently, I almost started to implement the ability to add
> > extensions, but then I found lynx's -force_html flag:
> >
> > mhshow-show-text/html: %plynx -force_html '%F'
> >
> > so I put it off. Dan Winship was recently mucking around in the %-escape
> > code -- maybe he has an idea of how hard or easy it'd be to implement this.
>
> Well... it turned out to not be terribly hard. I created variables of
> the format:
> mhshow-suffix-TYPE:
> mhshow-suffix-TYPE/SUBTYPE:
> for example:
> mhshow-suffix-application/msword: .doc
> mhshow-suffix-application/PostScript: .ps
>
> Then, I applied the patch below and things worked great. This only affects
> openBase64. I added the same lines to the openQuoted and it dumped core
> on me. I don't have time to look into it any more tonight, but in the
> meantime, Base64 is working great.
Sounds good. I'll hold off on applying that patch until it's working for
all encodings.
-----------------------------------------------------------------------
Dan Harkless | To prevent SPAM contamination, please
[EMAIL PROTECTED] | do not post this private email address
SpeedGate Communications, Inc. | to the USENET or WWW. Thank you.