* textviewer.pl

  WHAT IT DOES
	This script tries to recognise an attachment by using the 'file'
	command and/or the file extension and then uses the available Linux
	utilities to make an effort to display it as text. For example
		.doc			antiword -w 72
		.txt, .diff, .c, .h,
  		  .ic. .ec, .cc, .sh,
  		  .sed, .awk		cat
		.html			txt2htm	or text2html
		.xls, .sxc, .csv	xlscat -L
		.rtf			rtf2text
		.pdf			pdf2text %f -
		.odt			ooo2txt
		.pl, .pm		perltidy -st -se or  cat
		.bz2			bzip2 -d < %f | strings

  HOW TO USE IT
  	Go to /Configuration/Message View/External Programs and enter the
	path to the script in the "Command for 'Display as text'" box.
	Now when you right-click an attachment and choose 'Display as text'
	this script will be invoked.

	
  Contact: H.Merijn Brand <h.m.brand@xs4all.nl>
