Re: mail messages with only html
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.
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.
--
John L. Fjellstad
web: http://www.fjellstad.org/ Quis custodiet ipsos custodes
Reply to: