Hi all,
You can use these entries in your ~/.mailcap file for viewing msword and ms-excel document, which comes as mail attachments.
Dependency: wv, html2text, xlhtml (these are available in debian archives http://www.debian.org/distrib/packages) Assumption: conf and example files of wv are in /usr/share/wv
#FOR MS WORD application/msword; wvWare -x /usr/share/wv/wvHtml.xml '%s' | html2text; copiousoutput; description=Microsoft Word Document; print=wvWare -x /usr/share/wv/wvHtml.xml '%s' | html2text | print text/plain:-
#FOR MS EXCEL application/vnd.ms-excel; xlhtml -c %s | html2text; copiousoutput; description=Microsoft Excel Document; print=xlhtml -c %s | html2text | print text/plain:-
You can use any other alternative to html2text like lynx. I am using these settings and using mutt for reading mails. Its working very fine. and if you use "set autoview = yes" in ~/.muttrc, mutt will automatically display the files without asking you to open the file.
regards