0

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.

Maruf
  • 1
  • 1

1 Answers1

0

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.

Jakub Jindra
  • 321
  • 3
  • 8
  • Thanks Jakub, do you know any other way to view it directly? Means not as an attachment but like in mail body like Gmail? – Maruf Jun 16 '20 at 19:41
  • I tried it several times and different approaches before and it didn’t work. But you can try asking on #mutt #neomutt channels on Freenode. There’s more brainpower. You can reflect your findings here later. – Jakub Jindra Jun 16 '20 at 22:45