David --
...and then David Champion said...
% On 2001.09.19, in <[EMAIL PROTECTED]>,
% "Miguel Farah F." <[EMAIL PROTECTED]> wrote:
% > Jura ernqvat arjf jvgu gva, vs bar cerffrf gur 'q' xrl, gur pbagrag bs
% > gur negvpyr orvat ernq jvyy or ebg13-rq.
...
% How about this?
*grin*
%
% auto_view text/rot-13
% macro index \Ca
"<edit-type><kill-line>text/rot-13<enter><display-message><edit-type><kill-line>text/plain<enter>"
"Display message with ROT-13 encoding"
%
% $ grep rot-13 ~/.mailcap
% text/rot-13; tr '[A-Z][a-z]' '[N-Z][A-M][n-z][a-m]' <%s; copiousoutput
Hey, that's slick. I just might have to try that one!
You need to lose the extra brackets, though, to make it
text/rot-13; tr '[A-Z][a-z]' '[N-ZA-M][n-za-m]' <%s; copiousoutput
or even simply lose them entirely; your version breaks for me here under
Linux (though I don't know about under Solaris, which would definitely
support both of my versions).
%
% That's the only way to get a filter to display inside the pager: set the
% content-type so that a MIME content handler applies.
Neat idea, and it makes a lot of sense.
%
% --
% -D. [EMAIL PROTECTED] NSIT University of Chicago
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
PGP signature