On 2022-10-09 10:20, Jan Eden wrote:
> Hi,
> 
> after Chris Green's and Cameron Simpson's helpful advice regarding HTML
> messages, I dare to post another mailcap question.
> 
> My mailcap contains the following lines:
> 
> application/vnd.openxmlformats-officedocument.wordprocessingml.document; 
> ~/.mutt/view_attachment %s "-"
> application/vnd.openxmlformats-officedocument.wordprocessingml.document; 
> pandoc --from docx --to markdown %s; copiousoutput
> 
> where view_attachment is a modified version of Chris' script. .muttrc
> contains
> 
> auto_view text/html 
> application/vnd.openxmlformats-officedocument.wordprocessingml.document
> 
> to take advantage of the mailcap search order[1]. The idea is to display
> the pandoc-generated markdown with view-attach and open LibreOffice with
> view-mailcap.
> 
> But Word attachments are always opened with LibreOffice. Is there any
> way to achieve the intended (different) behavior for view-attach and
> view-mailcap?

Update: There was an error in my configuration, and now Markdown
versions of Word documents are displayed inline ([-- Autoview using
pandoc --from docx --to markdown --]).

view-attach und view-mailcap still use the same mailcap entry (opening
the attachment with LibreOffice), but at least auto_view has the desired
effect.

- Jan

Attachment: signature.asc
Description: PGP signature

Reply via email to