Viewing Inline images in Mutt mail on macos/OSX

1.1k Views Asked by At

Is there any way to see inline images in mutt pager view in terminal? I've tried w3m but it requires w3m-img which seems not for macos/osx. Can anyone suggest if it's possible to integrate imgcat(avaiable in iterm2) in mailcap? Please suggest complete steps/any solution for displaying images in terminal for mutt mail agent. Thanks a lot in advance.

1

There are 1 best solutions below

2
Jakub Jindra On

Unfortunately it's not possible to use imgcat to show images directly in built-in pager using mailcap and autoview at least from my findings.

Try following line in Your mailcap file

image/*; (clear && imgcat %s && read -N 1); needsterminal

Then hit v to show attachments, select any image attachment and press <enter>. To get back to mutt, just press any key.