Open Source

Viewing images with Mutt, via mailcap configuration, on Ubuntu Debian GNU/Linux

When viewing various mime attachments, Mutt uses mailcap [/etc/mailcap] to decide which applications to use.

I was suprised to find that gif and other images are not supported ‘out of the box’.

However,
creating a file called ~/.mailcap with the following text solved it quickly.


###############################################################################
#
# MIME types and programs that process those types
#
###############################################################################
image/*; /usr/bin/gthumb '%s'; test=test -n "$DISPLAY"

/usr/bin/gthumb‘ refers to the application I want images to be opened with from Mutt, when I get image attachments in my email.

Thats pretty much it!

Leave a comment