Mailcap for .docx files (using docx2txt or similar)
Chris Green
cl at isbd.net
Fri Jan 22 14:07:35 UTC 2021
On Fri, Jan 22, 2021 at 06:24:22PM +0530, Chinmaya Nagpal wrote:
> On Fri, Jan 22, 2021 at 12:35:46PM +0000, Chris Green wrote:
> > So, it would be handy to have mutt configured to use one to view .docx
> > files. I'm sure somebody must have done this already so what does the
> > ~/.mailcap entry have to look like?
>
> This works for pandoc:
> application/vnd.openxmlformats-officedocument.wordprocessingml.document;
> pandoc --from docx --to markdown %s; copiousoutput
>
Wonderful! I'd never come across pandoc before, it seems to be able
to do almost anything! ... and it's maintained/up to date.
Thank you.
> Source:
> https://raymii.org/s/articles/Viewing_PDF_docx_and_odt_files_in_Mutt.html
--
Chris Green
More information about the Mutt-users
mailing list