First, install doc2txt & antiword.
Secondly, add
application/vnd.openxmlformats-officedocument.wordprocessingml.document; cat %s|/usr/local/bin/docx2txt.pl; copiousoutput application/msword ; antiword %s ; copiousoutput
to ~/.mailcap
Now ‘v’ to view the word attachment should work
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