Re: css/html email
- To: mutt-users@xxxxxxxx
- Subject: Re: css/html email
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Mon, 11 May 2009 13:34:04 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :content-transfer-encoding:in-reply-to; s=default; bh=PApSJT/4Eq bpBDIG6KeN2tArv7M=; b=XOcMg+jPD7ppYcLsqWeODkZ4HxHYORrTLAcHokhIxd i6hGcq883rl24kNgGM/GIprf0OAnX6Sa7ost3E/Wgb+5T+avDJWtUBFe5MasP9kZ Tehw+FgBJyY7CxJoHQRjNoF9JW9G3ZAXhH8txNlVWVdpVnVLLtFw0K9PmSTDFxbV Y=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=iCR6nCfdabzhCdYvPmWNkjF/pFyF/43tlx0cCw9ubPYI+YxypcUYGqhNxL0aqGET8oNPOVTtzUrfKbkBh1e5L9hvgshjecHoJ9/Pl5X2SlDFRtv7jyYR7ThxhCRTQoAks/Bu22xTJiqUMPHGOM7XiAS4VGiD1pYIHhN2bhcr3ow=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:Content-Transfer-Encoding:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20090511174243.GA29306@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20090511174243.GA29306@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.19 (2009-04-29)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Monday, May 11 at 10:42 AM, quoth Jason Helfman:
> I have used the lynx autoview rule for years, however it doesn't
> seem to be translating well with Evolution, or css formats that are
> going to my lovely mutt.
Hmmm, I don't have trouble. I use w3m, though, so maybe I can help.
> Here is my autoview as it is now:
What are these lines from? ~/.mailcap? ~/.muttrc? You're mixing the
syntax for both, so it's hard to tell if you're doing that
intentionally or if you just don't know that the commands belong in
one file or the other.
> application/octet-stream; /home/jhelfman/.mutt/mutt.octet.filter %s;
> copiousoutput
You do NOT want this. What you probably want is to remove that line
from your mailcap and add the following line to your muttrc:
mime_lookup application/octet-stream
What that does is causes mutt to select a mime-type for attachments
that are labeled as application/octet-stream based on their filename.
> text/x-vcard; /home/jhelfman/.mutt/mutt.vcard.filter %s; copiousoutput
> mime_lookup application/octet-stream
Wait, those are both lines in your mailcap file? Um, no, that
mime_lookup line goes in your muttrc, not your mailcap. And the
text/x-vcard line? That goes in your ~/.mailcap file, not your muttrc.
> text/html; /usr/bin/w3m -F -dump -T text/html %s;
> nametemplate=%s.html; copiousoutput
Okay, finally, the ONLY line in your mailcap that applies to your
situation. :)
Note that the nametemplate option you're specifying is redundant. It
achieves the exact same thing that the '-T text/html' option achieves.
Pick one or the other, you don't need both.
Here's what I use:
text/html; w3m -T text/html; needsterminal
test/html; w3m -I ${charset} -dump -T text/html; copiousoutput
Well, okay, my actual setup is slightly more complicated (because w3m
refuses to understand that my terminal width is more important than
the widths specified by tables in the email, and thus w3m's output can
sometimes exceed 80 columns. I have to use a sed script to "sanitize"
html). But that's the basic setup. I have yet to receive a message
that I can't render.
> auto_view text/html
Um, no.
My guess is that you're getting weird problems because you have mutt
commands in your mailcap (or you have mailcap commands in your
muttrc).
~Kyle
- --
As we enjoy great Advantages from the Inventions of others we should
be glad of an Opportunity to serve others by any Invention of ours,
and this we should do freely and generously.
-- Benjamin Franklin
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iQIcBAEBCAAGBQJKCG+bAAoJECuveozR/AWeMJIP/25IuVcJwbVxnf6rW5TOnikB
U16VhpROr4HJAya260e5q5gFJ8ImG0lQ9z6/+NfkaK4ZYe2PiiHDfwdrqRgD7zb9
n9Np186zrq0k+Z4rDq2Ym2sGV4m+rZN7o1SXuR+17GbE3EN84Br0zDYO8f7ojTL2
VIhD9vHdT83B7mTTGttkHEKVGGjt9ZRYPNSpak4KUJI2JqULvM+rNrpmVvNoFC2X
jw7/npIJxoQTsWB83GfhaRSC9ZyhkQsXHRCGpnlztioPQcsYud0k9L9GPw/A84X5
QoC9UiG4f6LYwjY8xTikL1jX3SyMk+cQM9n7NtcPG4HHRo380FvRVpqihxFJBWlw
8RryNMsGOlxyym//UB9uQ6PHJkrBBLyLDI2eV0WUFtKZ1ASRHoA4Z4Zm4lmQoJF/
56yyyPW0nwqbE+mneqL6vG3ClFfouchKvvu1xZKG6HtOZfcTM93SC8rFS4onkAct
vxOisqwUzbNCM+OWL89Lxp8U5udKOVXFlQyv+YB9wb5w2F8pc7TPXf1HR6BRvfEr
lfQAq5Drrtwt26peUIjlOA+CRk6FkSnpMTR113s8VO1ANL43wCvGLjx6AXf320Cm
RUfD/a9ClCMV4imAKPHYUPIoQbimD4RH3KwXsXoobXIyf3MZJ0OopFn2pN/511n4
dKG1gwlDfipqQmvCa47T
=R6Pb
-----END PGP SIGNATURE-----