Re: Reading .doc files from within Mutt

2001-07-27 Thread mdevin
On Mon, Jul 23, 2001 at 09:36:19PM +0200, Alexander Steinert wrote:
  What is the best (simplest) way to read .doc files from within Mutt?
 
 /etc/mailcap:
 application/msword; /usr/bin/antiword '%s'; copiousoutput; 
 description=Microsoft Word Text; nametemplate=%s.doc
 
 and (if you want)
 
 ~/.vimrc:
 auto_view application/msword

Excellent.  That works great and is just what I wanted.

Thanks indeed.

Mark. 



Re: Reading .doc files from within Mutt

2001-07-27 Thread Damon Muller
Quoth [EMAIL PROTECTED], 
 On Mon, Jul 23, 2001 at 09:36:19PM +0200, Alexander Steinert wrote:
   What is the best (simplest) way to read .doc files from within Mutt?
  
  /etc/mailcap:
  application/msword; /usr/bin/antiword '%s'; copiousoutput;
  description=Microsoft Word Text; nametemplate=%s.doc
  
  and (if you want)
  
  ~/.vimrc:
  auto_view application/msword

I missed this the first time round, but I think this should have been
~/.muttrc, not ~/.vimrc

Nice trick, BTW.

damon

-- 
Damon Muller :: Department of Criminology :: University of Melbourne

I go, and it is done; the bell invites me.
Hear it not, Duncan; for it is a knell
That summons thee to heaven or to hell.
  -- Macbeth



Re: Reading .doc files from within Mutt

2001-07-23 Thread Jesper Holmberg
Hi Mark,

I use this in my ~/.mailcap file:

application/msword; ~/viewDoc %s; copiousoutput

which calls the small script viewDoc, residing in my PATH:

#!/bin/sh
wvHtml $1 $1.html
w3m -dump -T text/html $1.html
rm $1.html

This converts the doc file to html using wvHtml, and then converts the
html to text, using w3m. Since this script uses w3m and wvHtml, you need
to install w3m (or lynx or links) and wv.

HTH

Jesper

* On  Mon, Jul 23, 2001 at 09:12:52AM +1000, [EMAIL PROTECTED] wrote:
 What is the best (simplest) way to read .doc files from within Mutt?



Re: Reading .doc files from within Mutt

2001-07-23 Thread Martin F. Krafft
also sprach Jesper Holmberg (on Mon, 23 Jul 2001 12:59:00PM +0200):
 which calls the small script viewDoc, residing in my PATH:
 
 #!/bin/sh
 wvHtml $1 $1.html
 w3m -dump -T text/html $1.html
 rm $1.html

there is also catdoc, a debian package, which essentially does the
same...

martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^.*|tr * mailto:; [EMAIL PROTECTED]
-- 
no cat has eight tails.
a cat has one tail more than no cat.
therefore, a cat has nine tails.


pgpkDDqFBzH8k.pgp
Description: PGP signature


Re: Reading .doc files from within Mutt

2001-07-23 Thread Steve Mayer
antiword is great for this also.

Steve

On Mon, Jul 23, 2001 at 04:13:35PM +0200, Martin F. Krafft wrote:
 also sprach Jesper Holmberg (on Mon, 23 Jul 2001 12:59:00PM +0200):
  which calls the small script viewDoc, residing in my PATH:
  
  #!/bin/sh
  wvHtml $1 $1.html
  w3m -dump -T text/html $1.html
  rm $1.html
 
 there is also catdoc, a debian package, which essentially does the
 same...
 
 martin;  (greetings from the heart of the sun.)
   \ echo mailto: !#^.*|tr * mailto:; [EMAIL PROTECTED]
 -- 
 no cat has eight tails.
 a cat has one tail more than no cat.
 therefore, a cat has nine tails.


=
Steve Mayer Oracle Corporation
Senior Member of Technical Staff1211 SW 5th Ave.
Portland Development Center Suite 900
[EMAIL PROTECTED]   Portland, OR 97204 
Phone:  503-525-3127
=



Re: Reading .doc files from within Mutt

2001-07-23 Thread Alexander Steinert
 What is the best (simplest) way to read .doc files from within Mutt?

/etc/mailcap:
application/msword; /usr/bin/antiword '%s'; copiousoutput; 
description=Microsoft Word Text; nametemplate=%s.doc

and (if you want)

~/.vimrc:
auto_view application/msword

Stony