<<< Date Index >>>     <<< Thread Index >>>

Re: attachment viewing and mailcap query



On Sun, Dec 09, 2007 at 07:49:39PM +0000, Jamie Griffin wrote:
> Hi - 
> 
> I've read so many websites and the manuals to set up attachment viewing 
> from mutt. I've got a .mutt/auto_view file and a .mutt/mailcap file 
> with appropriate entries in it. 
> 
> The main problem i'm having is with ms applications - word is the one 
> i've tried so far. 
> 
> I got around this by putting the following in my .mutt/mailcap file:
> 
> application/msword; view_attachment %s "-" '/Applications/Microsoft\ Office\ 
> 2004/Microsoft\ Word'

This will work after pressing "v" but cannot work when you just open the
mail. That needs something that converts word to text and the mailcap
entry needs the 'copiousoutput;' parameter. 

> and have a 'view_attachment' script in /usr/local/bin. This worked ok, 
> but when opening mail with a word document attached, i kept getting 
> an error-message saying:
> 
> "mailcap entry application/msword not found". This frustrated me and i 
> thought my configuration must be wrong. 
> 
> I was able to open the attachment by pressing the 'v' key to view, and 
> selecting the attachment which then opened it with the msword program. 
> I was still bothered by the mailcap entry error i was getting.
> 
> I then installed antiword and added the following entry into my 
> .mutt/mailcap file:
> 
> "application/msword; antiword %s | more; copiousoutput; needsterminal"

Do you have this line and the one above in the mailcap file? If so it
will use Msword from the attachemnt menu after pressing "v" and antiword
in line when you open the mail.

The other question is thsi - are all your word attachemnts of
application/msword type? They could be application/vnd.msword or indeed
a host of other things unfortunately and you will have to add other
lines to your mailcap to cover these.
 
> This does allow me to view the attachment contents, but can't open the 
> attachment with the word program. I would like to do both, this is 
> where i'm having problems. Perhaps my set up is wrong?
> 
> Does anyone have any suggestions?
> 
> Jamie



-- 
"The PROPER way to handle HTML postings is to cancel the article, then
hire a hitman to kill the poster, his wife and kids, and fuck his dog
and smash his computer into little bits. Anything more is just extremism."
                                                -- Paul Tomblin
Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au