Re: Suggestions for mail client

From: Darius Rosotic <drosotic_at_gmx.com>
Date: Sat, 21 Sep 2024 06:43:46 UTC
On 2024-09-21 00:00:55, Joe B wrote:

> I would like to use neomutt/mutt as my main email client but my family
> still sends attachments and html emails. can mutt/neomutt open them ?
> if so how or could you point me somehwere that can help.
>
> Thanks
>
> Joe

Hello,

In my "muttrc" file, I set a path to a "mailcap" file.
A "mailcap" file explains how to handle different kind of file types.

	set mailcap_path = "/home/me/mutt/mailcap"

In this file I have this code to say that I want "HTML" attachments
opened with Firefox:

	# html
	text/html; /usr/local/bin/firefox --new-window '%s' & sleep 2; \
		description=HTML Text; test=test -n "$DISPLAY"; \
		nametemplate=%s.html

Then, in "mutt", to see the list of attachments of a message, you
have to hit the key:

	v

To open an "HTML" attachment, you have to select the line, then hit
the key:

	m

Firefox opens the "HTML" attachment in a new window.

Hope it helps.

Darius