[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: unrtf in /etc/mime.types



* Martin A. Hansen (maasha@image.dk) [020429 13:57]:
> hi
> 
> i would like to have mutt translate rtf files automagically.
> 
> it works with .doc files where i have inserted a line with antiword in /etc/mime.types
> 
> however, with unrtf one need the switch unrtf --text <file> . how is that handles with mime.types?

I have this in my /etc/mailcap (and I don't think I added it, so maybe
you already have one, too?) Remember to add application/rtf to your
auto_view statement in mutt's config; it might be all you need to do.

application/rtf; unrtf --text '%s' | pager ; needsterminal; description=RTF Docu
ment; print=unrtf --text '%s' | print text/plain:-

I also haven't tried it, so I can't say for certain it works. Send me a
sample .rtf off-list and I'll let you know =)

good times,
Vineet

-- 
Currently seeking opportunities in the SF Bay Area
Please see http://www.doorstop.net/resume.shtml

Attachment: pgpoqrYsQiQcM.pgp
Description: PGP signature


Reply to: