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

Re: mail messages with only html



On Fri, Sep 14, 2007 at 12:24:03AM +0100, Benjamin A'Lee wrote:

> On Thu, Sep 13, 2007 at 05:46:21PM -0500, Ron Johnson wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > On 09/13/07 17:36, Richard Lyons wrote:
[...]
> > > could I in principle write a script to take such void plus html
> > > messages, strip the tags (replacing URLs when the href text
> > > doesn't have it) and write the bare text back into the source
> > > email 
[...]
> 
> There are viewers that can hook into Mutt even if you don't run it under
> X. 
> 
> In .muttrc:
>     auto_view text/html
> 
> In .mailcap:
>     text/html; w3m -dump -T text/html '%s'; copiousoutput
> 
> Or:
>     text/html; lynx -dump '%s'; copiousoutput # or something like that.
> 
> Or use the pipe function to feed it into one of those viewers, for an
> interactive session.

Obviously a better method, yes.  But when I reply, I will not get the
received text quoted ready for editing if the email is void.  The best
approach might be to take the output of w3m (or links2, elinks, or lynx)
and write that back instead of the original attachment.  Then the
archive copy will be neat and parsimonious, and any reply will have
text to edit.  I wonder how to find $myMessageId to do that.  Could even
automate it so that it happens for every void email with an html
attachment before I even open it...

-- 
richard



Reply to: