Viewing .doc & .docx in mutt

First, install doc2txt & antiword.

Secondly, add

application/vnd.openxmlformats-officedocument.wordprocessingml.document; cat %s|/usr/local/bin/; copiousoutput
application/msword ; antiword %s ; copiousoutput

to ~/.mailcap

Now ‘v’ to view the word attachment should work

This entry was posted in Linux and tagged , , , , , , . Bookmark the permalink.

1 Response to Viewing .doc & .docx in mutt

  1. jh says:

    one can also use pandoc to convert docx to markdown, which reads very nicely in comandline

    application/vnd.openxmlformats-officedocument.wordprocessingml.document; pandoc -s %s -t markdown; copiousoutput

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.