I think that if you want to learn something, the best way is to complicate yout life as much as possible!
I would like to learn the essence of the GNU/Linux operating systems and the Richard Stallman’s philosophy, so I try to delete all it has a GUI…using the CLI every time I need to do something.
So I use Mutt as text-based email client for my Arch Linux operating system.
But many emails have photos and images as attachments and it is very complicated to watch them at the terminal.
The solution has been found by http://paul.kuntke.de/. Click on this link to follow the original receipe, otherwise I reported the needful steps in this post.
Firstly you have to install the w3m-img package (the package w3m is sufficient for Arch Linux distro):
Then create the bash script muttimage.sh:
As written in the linked web-site, this script determines first the height and width of the running terminal.
The last step is add the following command in your mailcap.mutt
located in your .mutt
directory:
Now, when you will open an image in the mutt e-mail client, you will see it directly without save nothing.