earl wrote:
On 4/23/2008 3:05 PM, Xavier Maillard wrote:
Do you know any easy way to just trash redundant HTML part of emails
from gmail.com (for example) ?
For showing messages with HTML parts, you can use text-based browsers
like w3m, links, lynx, etc. Here is what I have in my .mh_profile:
mhshow-show-text/html: w3m -T text/html
mhshow-show-text/x-html: w3m -T text/html
alternatively, to prevent the html from being shown, simply
provide no way of showing it -- comment out all "mhshow-show-text/html:"
lines in mh_profile (_and_ the system mh_profile, i believe).
since sometimes there's nothing _but_ an html section (grrr...),
you then need a way of viewing them only sometimes. i use a
script that does:
MHSHOW=$HOME/Mail/mhn.html mhshow -type text/html $*
the mhn.html file referred to by $MHSHOW contains the single line:
mhshow-show-text/html: %p/usr/bin/lynx -force_html '%F' -dump | less
(but see earl's comments regarding lynx -- i should change this.)
For handling replies to such beasts, I wrote a Perl script
to handle it, leveraging mhonarc. The script is called
mha-edit. Info and download is here:
http://www.mhonarc.org/MHonArc/extras/mha-mhedit/
If you download mhonarc itself (which you will need), mha-mhedit
is provided in the extras/ directory.
thanks! i'll have to look at that.
paul
=---------------------
paul fox, pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us (arlington, ma,
where it's 69.1 degrees)
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers