Re: How make StarOffice read MS-Word attachments automagically?

2001-05-08 Thread Conor Daly

On Fri, May 04, 2001 at 07:46:03PM -0700 or thereabouts, Dr. Christian Seberino wrote:
  I successfully got html attachments read automagically and
 thought I would be more ambitious and get StarOffice to read
 M$-Word attachments too...
 
 What is the analog of auto_view text/html in .muttrc
 and text/html; lynx -dump %s ; copiousoutput in .mailcap?
 
 (I tried auto_view text/doc but no go (doc is binary :( )
 
 I still love mutt,

Excerpt from my .mailcap

application/msword; /home/cdaly/bin/office52/soffice %s ;
edit=/home/cdaly/bin/office52/soffice %s;
compose=/home/cdaly/bin/office52/soffice %s; description=Microsoft Word
document

Thassit...
-- 
Conor Daly 
Met Eireann, Glasnevin Hill, Dublin 9, Ireland
Ph +353 1 8064217 Fax +353 1 8064275

  1:20pm  up 19:13, 10 users,  load average: 0.01, 0.04, 0.13



Re: How make StarOffice read MS-Word attachments automagically?

2001-05-07 Thread Sam Roberts

Quoting Mark Sheppard [EMAIL PROTECTED], who wrote:
 On Sat, May 05, 2001 at 07:49:40AM +0100, Viktor Lakics wrote:
  Using staroffice is a horror idea - at least to me...:-)). What do
  you want to see in those emails? Mutt is an email client, very fast,
  staroffice is *BIGGG* and *SLW*. I can imagine myself waiting
  30-40 sec for some stupid email to come up...How can you survive?
 [...]
  MSWORD: the way is to convert it to text: for this you need
  wordview package (find it on the nearest linux mirror)
 [...]
 
 An alternative to wordview is catdoc available from
 http://www.fe.msk.ru/~vitus/catdoc/ (and it may well be part of

Also, there is antiword, yet another ms-word to text converter.

Anybody know about a ms-powerpoint and/or ms-excel to text converter?

-- 
Sam Roberts [EMAIL PROTECTED]



Re: How make StarOffice read MS-Word attachments automagically?

2001-05-05 Thread Viktor Lakics

HI Christian,

Using staroffice is a horror idea - at least to me...:-)). What do
you want to see in those emails? Mutt is an email client, very fast,
staroffice is *BIGGG* and *SLW*. I can imagine myself waiting
30-40 sec for some stupid email to come up...How can you survive?

Anyway, after the rant, some answers:

HTML mail: if you really want a graphical browser why do not use
konqeror in KDE or opera - these are small, fast and still very
capable browsers...

MSWORD: the way is to convert it to text: for this you need
wordview package (find it on the nearest linux mirror)

.muttrc: autoview application/msword
  autoview application/rtf

.mailcap:   application/msword; ~/wordview.sh %s; copiousoutput 

The wordview.sh file is abit tricky: first one need to convert doc
to html, then get lynx or links to dump it to text and finally feed
it back to mutt...

What I did is a terrible hack I know, there is a more clever way
using pipes, but it just did not want to work for me.

So here is the script:

#!/bin/bash
wvHtml --charset utf-8  $1  ~/tmp/wordtempfile.html
links -dump ~/tmp/wordtempfile.html
rm -f ~/tmp/wordtempfile.html


Copy it to a text file, name it wordview.sh then

chmod a+x wordview.sh  (this makes it executable)
put it somewhere in you path
wvHtml is the binary html converter in the wordview package.
links has to be at least v0.92, you can use lynx if you fancy that.

Do not forget to put the following in your .mime.types file:

application/msword  doc dot 
application/rtf rtf



Hope this helps... -- Viktor 

On Fri, May 04, 2001 at 07:46:03PM -0700, Dr. Christian Seberino wrote:
  I successfully got html attachments read automagically and
 thought I would be more ambitious and get StarOffice to read
 M$-Word attachments too...
 
 What is the analog of auto_view text/html in .muttrc
 and text/html; lynx -dump %s ; copiousoutput in .mailcap?
 
 (I tried auto_view text/doc but no go (doc is binary :( )
 
 I still love mutt,
 
 Chris
 -- 
 ===
 Dr. Christian Seberino   
 ===
 SPAWARSYSCEN D02P  || (619) 553-2564
 49330 ELECTRON DR  ||  
 SAN DIEGO CA 92152-5451|| [EMAIL PROTECTED]
 ===
 



Re: How make StarOffice read MS-Word attachments automagically?

2001-05-05 Thread Mark Sheppard

On Sat, May 05, 2001 at 07:49:40AM +0100, Viktor Lakics wrote:
 Using staroffice is a horror idea - at least to me...:-)). What do
 you want to see in those emails? Mutt is an email client, very fast,
 staroffice is *BIGGG* and *SLW*. I can imagine myself waiting
 30-40 sec for some stupid email to come up...How can you survive?
[...]
 MSWORD: the way is to convert it to text: for this you need
 wordview package (find it on the nearest linux mirror)
[...]

An alternative to wordview is catdoc available from
http://www.fe.msk.ru/~vitus/catdoc/ (and it may well be part of
whatever Linux distribution you're using).  Just install it and shove
the following line in your .mailcap:

  application/msword; catdoc %s; copiousoutput

and this in your .muttrc:

  auto_view application/msword

I've noticed that a lot of broken Windows mailers set the MIME type on
Word documents to application/octet-stream.  As this is a kind of
catch-all or last resort MIME type it doesn't really tell you much
about what the content actually is.  So if you want to handle this
gracefully you could use the following in your .mailcap:

  application/octet-stream; any2ascii %s; copiousoutput

and this in your .muttrc:

  auto_view application/octet-stream

where any2ascii is the script below.  This can easily be extended for
other data you receive with a MIME type of application/octet-stream.
The script depends on the file unix command being able to recognise
the format of the actual data.

Mark.



#!/bin/sh

# Guess the MIME type.

if [ $# != 1 ]; then
  echo USAGE: $0 file
  exit 1
fi

type=`file -b ${1+$@}`

if [ $type = Microsoft Word document data ]; then
  echo [-- any2ascii: using catdoc to convert '$type' --]
  echo
  catdoc ${1+$@}
  echo
  echo [-- any2ascii: EOF --]
else
  echo [-- any2ascii: unsupported file type '$type' --]
fi



How make StarOffice read MS-Word attachments automagically?

2001-05-04 Thread Dr. Christian Seberino

 I successfully got html attachments read automagically and
thought I would be more ambitious and get StarOffice to read
M$-Word attachments too...

What is the analog of auto_view text/html in .muttrc
and text/html; lynx -dump %s ; copiousoutput in .mailcap?

(I tried auto_view text/doc but no go (doc is binary :( )

I still love mutt,

Chris
-- 
===
Dr. Christian Seberino   
===
SPAWARSYSCEN D02P  || (619) 553-2564
49330 ELECTRON DR  ||  
SAN DIEGO CA 92152-5451|| [EMAIL PROTECTED]
===