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

Re: mail messages with only html



On Thu, Sep 13, 2007 at 08:55:46PM -0700, John L Fjellstad wrote:

> Richard Lyons <richard@the-place.net> writes:
> 
> > Here is the thought that struck me: 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 so that I can see it? The html attachment could be left
> > in place or discarded, it usually won't matter which.  Or would this
> > mess up the IMAP or Maildir indexing in some way?  
> 
> I fail to see why you couldn't write a filter (using maildrop or
> procmail) to pipe the message through w3m -dump (or links -dump) before
> storing the message.

Thanks John.  That seems to be the definitively best way to go.  I just
have to work out how to reliably identify or flag the offending messages for
treatment.


> 
> Also, IMAP won't care if you change the message. You just upload the
> message as a new message. I do it all the time with I add labels etc.

It will be better if I leave the headers alone, so that threading
doesn't get broken.

-- 
richard



Reply to: