Going GUI...er

Sam Kuper sampablokuper at posteo.net
Sat Apr 4 11:39:45 UTC 2020


On Sat, Apr 04, 2020 at 09:41:59AM +0200, Vegard Svanberg wrote:
> I'm increasingly finding myself having to resort to various tricks to
> deal with HTML only emails (with picture attachments), calendar
> invites, and other oddities and awkward stuff people send.

AKA "stuff awkward people send" ;)

This ~/.mailcap works tolerably under Gnome:


text/html;       lynx %s; nametemplate=%s.html
text/html;       lynx -force_html -width=72 -dump %s | sed -e 's/^[[:space:]][[:space:]][[:space:]]//' ; nametemplate=%s.html; copiousoutput
text/calendar;   /home/sampablokuper/src/mutt_and_neomutt_and_related/mutt-filters/vcalendar-filter; copiousoutput
application/ics; /home/sampablokuper/src/mutt_and_neomutt_and_related/mutt-filters/vcalendar-filter; copiousoutput
application/pdf; evince %s
image/jpeg;      /usr/bin/eog %s


(I have attached a copy of the .mailcap file, in case the above was
line-wrapped in transmission.)

Evince and EOG ("Eye of Gnome") are Gnome's PDF and image viewer,
respectively.  Use other programs for those tasks if you like.

vcalendar-filter is from https://github.com/terabyte/mutt-filters

Finally, the postscript below (above my email footer) is a snippet from
my muttrc file, that I find helpful for viewing emails and their
attachments, in conjunction with the above .mailcap .

To you: good luck!  And to Mutt's creators and maintainers: thank you!

Sam


# == Attachments ==
set attach_format="%u%D%I %t%4n %T%.40d %> %-1.20m/%-12.12M| %17.20e|
%11.12C| %4.12s"

# == Read ==
set pager_context=5
set pager_index_lines=8
set pager_stop=yes # Paging down at end of a msg? Don't jump to next msg
alternative_order text/plain text/enriched text/html # Try HTML last
# See ~/.mailcap for details of auto_view lines
auto_view text/html
auto_view text/calendar
auto_view application/ics
# This line gets rid of iso 8859 issues with attachments
set rfc2047_parameters
# Header weeding
ignore *
unignore from date subject to cc
unignore Message-ID: In-Reply-To: posted-to:


-- 
A: When it messes up the order in which people normally read text.
Q: When is top-posting a bad thing?

()  ASCII ribbon campaign. Please avoid HTML emails & proprietary
/\  file formats. (Why? See e.g. https://v.gd/jrmGbS ). Thank you.
-------------- next part --------------
text/html;       lynx %s; nametemplate=%s.html
text/html;       lynx -force_html -width=72 -dump %s | sed -e 's/^[[:space:]][[:space:]][[:space:]]//' ; nametemplate=%s.html; copiousoutput
text/calendar;   /home/sampablokuper/src/mutt_and_neomutt_and_related/mutt-filters/vcalendar-filter; copiousoutput
application/ics; /home/sampablokuper/src/mutt_and_neomutt_and_related/mutt-filters/vcalendar-filter; copiousoutput
application/pdf; evince %s
image/jpeg;      /usr/bin/eog %s


More information about the Mutt-users mailing list