nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] Discard (trash) redundant HTML part


From: Paul Fox
Subject: Re: [Nmh-workers] Discard (trash) redundant HTML part
Date: Thu, 24 Apr 2008 14:37:59 -0400

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, address@hidden (arlington, ma, where it's 69.1 degrees)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]