[geeks] HTML email in mutt
Alex Feinberg
alex at strlen.net
Mon Jun 16 14:04:52 CDT 2008
This is how I do it:
alex at behemoth:~$ cat .mailcap
text/html ; w3m -dump -cols 78 -T text/html %s ; copiousoutput
text/htm ; w3m -dump -cols 78 -T text/html %s ; copiousoutput
message/html ; w3m -dump -cols 78 -T text/html %s ; copiousoutput
message/htm ; w3m -dump -cols 78 -T text/html %s ; copiousoutput
from .muttrc:
auto_view text/html
macro index \cb |'w3m -T text/html' "call w3m to extract URLs out of a message"
macro pager \cb |'w3m -T text/html' "call w3m to extract URLs out of a message
(This allows me to use Ctrl-b to fire up w3m on the messages if
either if either the mime-type is improper or if I need to get the
URLs out of the message to paste into a web browser).
- Alex
On Saturday, 14 June 2008 at 16:20:06 -0400, Joshua Boyd wrote:
> I want to be able to view some html email in mutt. So, I added the
> following lines to the indicated files.
>
> .muttrc:
> auto_view text/html
>
> .mailcap:
> text/html; lynx %s; nametemplate=%s.html
> text/html; lynx -dump %s; nametemplate=%s.html; copiousoutput
>
> Now the issue I'm having is that for messages that come with both a
> proper text body and an HTML version, like ebay messages, I see the HTML
> version instead of the text version, which means that I do not see the
> URLs. Does anyone have a trick for defaulting to the text/plain section
> before the text/html section?
>
> Also, does anyone have a trick for detecting when the text/plain section
> is really HTML as well?
> _______________________________________________
> GEEKS: http://www.sunhelp.org/mailman/listinfo/geeks
More information about the geeks
mailing list