procmail
[Top] [All Lists]

Re: adding plaintext when only html is received

2004-01-21 13:40:37
At 12:42 2004-01-21 -0500, Tom Limoncelli wrote:
Occasionally I get HTML email without a multipart/alternative that is
plaintext.

So do I.  I call it spam. <g>

Does anyone have a script that would turn the html into plaintext
and add it as a multipart/alternative?

Autoreply to the sender and tell them to fix their email client?

I found this:
http://www.xent.com/pipermail/fork/2002-June/012749.html
but it strips the HTML out completely.

Convert the HTML to plaintext (the above tool might do that, I didn't follow the link -- or lynx can), then take the original text and the HTML (and whatever ELSE might have been in there), and feed it into "mimencode" to generate a new message.

One must wonder: if you WANT these messages, and the absence of a plaintext part is a problem, why not upgrade to an MUA that can handle it -- OR, if your MUA can't, why is just rewriting it to plaintext a problem?

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>