On Thu, Mar 21, 2002 at 07:10:40PM -0500, Rob Reid wrote:
> Why do you need to *replace* the message with its filtered version?
> 
> At  5:18 PM EST on March 21 Mike Schiraldi sent off:
> > I don't know. It would be nice to press the key bound to <filter> and type,
> > like, 
> > perl -pe 's/<.*?>//g'
> > to remove all HTML tags from a message.
> 
> It's practically a necessity before replying.  Here's something from my
> .muttrc that saves me a lot of time:
> 
> # Despite the name, stripmime.pl is really for deHTMLization.
> macro index "H" "|/home/reid/bin/stripmime.pl >> /var/spool/mail/reid"
>  
> i.e. it makes a copy that goes in my inbox, and ends up threaded right below
> the original.  If you wanted (I don't) you could add automatic deletion of the
> original.
> 
> The only problem is that it goes to my inbox even if the original is in a
> different folder.  Is there a trick to fix that?  I'm joining the thread late,
> so is that the real problem?  In any case it would be useful for mutt to be
> able to write the current folder into an environment variable or file.

You're going to too much work, and I would imagine that the results
don't look very good.  To fix HTML e-mail, just put this in your mailcap
file:

    text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput

and this in your muttrc:

    auto_view text/html

The HTML content of messages will be nicely formatted when you read them
as well as when you reply to them.  (I prefer w3m, but lynx would work
as well.)

Gary

-- 
Gary Johnson                               | Agilent Technologies
[EMAIL PROTECTED]                   | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |

Reply via email to