russellb...@gmail.com wrote in <202008151309.07fd97fl031...@randytool.net>: | Quoth Mike McClain: | 'As per your suggestion I put this in ~/.mailcap: | text/plain; cat %s; copiousoutput' | |The first field (the part before ;) identifies the type of file. This |entry instructs mail (and lynx) how to treat 'text/plain' files, not |ruby files. | | 'When that didn't help I created ~/.lynxcap with the same |entry.' | .lynxcap is my invention. To get lynx to use it one must add: | | PERSONAL_MAILCAP:~/.lynxcap | |to lynx.cfg; lynx uses .mailcap by default.
Not that it matters, but RFC 1524 specifies $MAILCAPS with a default of MAILCAPS=~/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap where this is not a search path, but a path search (they can stack). | 'Reading up on mailcap led to mime.types and in /etc/mime.types |commenting out this line: | #application/x-ruby rb |allowed lynx to open ruby source files.' Mysterious, shouldn't that be text/x-ruby. That is what i use, and what is found a lot on the web. In general i totally dislike the missings standards which require so many x- things, and that we have quite a lot of application/ things where this is not truly useful, say x-sh (doh), but x-awk, x-perl, x-java, and more of this sort. | Lines that begin with # are comments, not acted upon. I would |have tried: | | text/rb; less %s This requires an explicit temporary file, whereas text/x-ruby; less would/should not. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) _______________________________________________ Lynx-dev mailing list Lynx-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/lynx-dev