On Feb 09, Marco Peereboom wrote:
Stuff crap like this in .mailcap
text/html; /usr/local/bin/links -dump '%s'; copiousoutput; description=HTML
Text; na metemplate=%s.html
text/html; /usr/local/bin/links '%s'; needsterminal; description=HTML Text;
nametemp late=%s.html
I had them for all kinds of things but can't find that file anymore.
Here is mine for example. Hope it will be useful for somebody on misc@
# $Id: mailcap,v 1.15 2011/02/08 18:42:07 zinovik Exp $
application/msword ; catdoc -s koi8-r.txt %s ; copiousoutput
application/vnd.msword ; catdoc -s koi8-r.txt %s ; copiousoutput
application/excel ; xls2csv %s | sed 's/,//g';
copiousoutput
application/msexcel ; xls2csv %s | sed 's/,//g';
copiousoutput
application/ms-Excel; xls2csv %s | sed 's/,//g';
copiousoutput
application/vnd.ms-excel; xls2csv %s | sed 's/,//g';
copiousoutput
application/x-excel ; xls2csv %s | sed 's/,//g';
copiousoutput
application/octet-stream; cat %s; copiousoutput
application/x-bzip2 ; bzip2 -dc %s ; copiousoutput
application/x-cpio ; cpio -tvF --quiet %s ; copiousoutput
application/x-csh ; cat %s; copiousoutput
application/x-diff-gzip ; zcat %s ; copiousoutput
application/x-gtar ; tar tvf %s; copiousoutput
application/x-gzip ; tar tfz %s; copiousoutput
application/gzip; tar tfz %s; copiousoutput
application/x-gunzip; gzcat ; copiousoutput
application/x-latex ; cat %s; copiousoutput
application/x-perl ; cat %s; copiousoutput
application/x-script; cat %s; copiousoutput
application/x-shar ; cat %s; copiousoutput
application/x-shellscript ; cat %s; copiousoutput
application/x-sh; cat %s; copiousoutput
application/x-tar ; tar tzf %s; copiousoutput
application/x-tar-gz; gunzip -c %s | tar -tf - ; copiousoutput
application/x-tcl ; cat %s; copiousoutput
application/x-tex ; cat %s; copiousoutput
application/x-troff ; groff -Tlatin1 %s ; copiousoutput
application/x-troff-man ; man -l %s 2/dev/null ; copiousoutput
application/x-troff-me ; groff -me -Tlatin1 %s ; copiousoutput
application/x-zip-compressed; unzip -v %s ; copiousoutput
application/zip ; unzip -v %s ; copiousoutput
text/comma-separated-values ; cat %s; copiousoutput
text/x-compress-html; zcat %s | lynx -dump ; copiousoutput
text/x-gzip-html; zcat %s | lynx -dump ; copiousoutput
text/html ; lynx -force_html -assume_charset=koi8-r
-assume_unrec_charset=utf8 -dump %s \
;
copiousoutput; nametemplate=%s.html
image/* ; anytopnm %s | pnmscale -xsize 80 -ysize
50|ppmtopgm|pgmtopbm|pbmtoascii \
; copiousoutput
Things like antiword and stuff help. At one point I had about a
$random_file to ascii converter for about everything.
On Wed, Feb 09, 2011 at 05:38:38PM +0100, Peter N. M. Hansteen wrote:
During recent months I've joined some mailing lists with fairly good
signal to noise ratio on a specific topic, the only snag being that a
distressingly large number of otherwise sane messages have been
written using mail clients (fsvo) that by default bury the content in
rich formatting that makes it hard for old-style mail readers to
cope.
Telling people off for their choice of mail clients is not an option
(some at least have had that choice made for them), so as a workaround
I probably need to start looking around for a mail client that will
make reading Outlook and peers' output less painful.
Does such a beast exist, preferably among OpenBSD packages (as in, it
has to run on OpenBSD, but I can build locally if needs be)?
I've tried and hated both Evolution and Thunderbird, but surely there
must be other choices?
- Peter
--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.